Design Read Receipts and Typing Indicators for Google Chat Spaces
Last updated: November 29, 2026
Quick Overview
Design the backend that shows who has read each message and who is currently typing in Google Chat direct messages and large Spaces. Updates should feel instant without overwhelming clients or storage.
0
0
0 solved
Design the backend that shows who has read each message and who is currently typing in Google Chat direct messages and large Spaces. Updates should feel instant without overwhelming clients or storage.
This shows up in Google onsite system design loops for Workspace teams. The interviewer checks whether you separate durable state (read watermarks) from ephemeral signals (typing) and whether you control fan-out in a Space with thousands of members.
What the Interviewer Expects
- Model read state as a per-user watermark, not a per-message flag
- Treat typing as ephemeral, best-effort, and never persisted
- Bound fan-out for large Spaces with aggregation or sampling
- Explain how clients reconcile after reconnecting
- Estimate write volume and show watermark updates are coalesced
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you show 'Seen by 2,400' in a 5,000 member Space cheaply?
- What changes if read receipts must respect a per-user privacy setting?
- How do you handle a user reading on phone and laptop at the same time?
- How would you throttle typing events from a flaky mobile client?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: mark a conversation read up to message N; show per-message readers in DMs and small groups; show a read count in large Spaces; show "X is typing" within about 300 ms.
**Non-functional...
High-Level Design
- Connection gateways hold a long-lived stream (WebSocket or gRPC stream) per device and subscribe to conversation channels.
- Read State Service stores `(conversation_id, user_id) -> last_rea...