Any modern LED rear lamp is good enough, even he cheap ones.
Keep it on constant mode at night, to allow distance estimation. If you want a blinking lamp, use an additional one. You can attach to seatpost or bag. If you have a luggage rack, use a bracket at the rear.
You can attach to offside seat stay but this is obscured from some angles.