Design Typing Indicators and Read Receipts for Messaging
Last updated: November 29, 2026
Quick Overview
Design the real-time presence layer for LinkedIn Messaging that shows typing indicators and read receipts across web and mobile, for one-to-one and group conversations.
0
0
0 solved
Design the real-time presence layer for LinkedIn Messaging that shows typing indicators and read receipts across web and mobile, for one-to-one and group conversations.
LinkedIn Messaging runs real-time delivery over persistent connections, and ephemeral signals like typing have different needs from durable messages. Interviewers check whether you separate the ephemeral and durable paths and can route events to the right connection servers efficiently.
What the Interviewer Expects
- Distinguishes ephemeral typing events from durable read state
- Designs a connection layer with persistent connections and routing
- Uses a session directory to find member connections
- Applies throttling and expiry to typing signals
- Handles multiple devices per member and privacy settings
- Estimates fan-out costs for group threads
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 do you show read receipts in a group with 50 members without overwhelming the UI and backend?
- What happens when a member's phone reconnects after being offline?
- How would you let members turn off read receipts?
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: typing indicator appears within about 300 ms and disappears after a few seconds of no input; read receipts show which participants have seen the latest message; members can disable rea...
High-Level Design
- Edge connection servers hold WebSocket or long-poll connections (mobile uses persistent sockets while foregrounded and push notifications otherwise).
- Session directory: a fast store mappin...