Lyft: One-to-one messenger with offline push, multi-device sync and paged history
Prompt. Design a messaging service that supports only one-to-one chats (no groups). The interviewer added extra requirements as the discussion went on.
Follow-ups the interviewer pushed on
- Delivery: send new messages straight to recipients who are online; for recipients who are offline, fall back to mobile push services (Apple and Firebase push).
- Multiple devices: a user can be signed in on several devices at once, and messages must stay in sync across all of them.
- History: keep conversations on the server and explain how older messages are paginated when a user scrolls back.
Candidate's take. The area matched their day job, so the round went smoothly. They found the interviewer's style unusual because extra constraints were slipped in as side notes, so listen closely and confirm each one.
What to prepare. Connection management for online users, per-device delivery state or read cursors, and a storage layout keyed by conversation and time that makes cursor-based paging cheap.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.