Frontend system design · about 45 minutes
Web chat client
Design the web client of a chat product. Users have one-to-one and group conversations. The screen shows a list of conversations and the open conversation with its messages. Messages are text for now. A user sees new messages at once, sees whether their own message was sent, and can scroll up to load older messages. The same user can be signed in on several devices and tabs. The connection can drop, for example on a train.
Ask first
- How large can a group be: 10 people or 10,000? This changes read receipts and presence.
- Which states do we show for a message: sending, sent, delivered, read? Do we show typing and online status?
- Must the user be able to read and write while offline, with messages sent later?
- Text only, or also images, files, reactions, edits and deletes?
- Is end-to-end encryption required? It changes search and history on a new device.
- How much history loads at first, and is there search in messages?
The outline
Write your own outline for each part first.
The strong answer, the pitfalls and the follow-ups opens with a year in the app. What a year includes