Design Read Receipts for Large Group Chats in Lark Messenger
Last updated: November 29, 2026
Quick Overview
Design the read receipt feature for Lark Messenger, where senders see who has read each message, for chats ranging from two people to groups of 5,000 members, across mobile, desktop and web clients.
ByteDance
November 29, 20260
0
0 solved
Design the read receipt feature for Lark Messenger, where senders see who has read each message, for chats ranging from two people to groups of 5,000 members, across mobile, desktop and web clients.
Lark is ByteDance's enterprise collaboration suite, and read receipts at large group sizes are a known scaling trap because naive designs write one row per reader per message. The interviewer checks write amplification math, a per-user read cursor model, and how you serve 'who has read this' lists cheaply.
What the Interviewer Expects
- Estimate write volume for per-message receipts and show it explodes in large groups
- Model reads as a per-user, per-chat read cursor (last read sequence)
- Derive per-message read counts and lists from cursors on demand
- Batch and coalesce cursor updates from clients
- Push receipt updates to senders without fanning out to all members
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
- Different rules for 1:1, small groups and announcement channels: how do you tier the design?
- How do you keep cursors consistent across a user's phone and laptop?
- Compliance requires an audit of exactly when each person read a message: what changes?
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: show read and unread counts on each message the user sent; tap to see the list of readers and non-readers; works for groups up to 5,000. Non-functional: receipts visible within a couple of...
High-Level Design
Clients send ReadAck(chat_id, seq) when the user views the chat, debounced to at most one per chat every second or so. A Receipt service writes the per-member cursor (user_id, chat_id) -> last_read_se...