Interview practice question
Searching chat history
System Design · Design: Social and Messaging · Experienced
Users want to search their chat history in a non-end-to-end-encrypted chat app with billions of messages. How would you design it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Per-user/per-conversation search index.
- Index pipeline from message stream.
- Shard by user.
- Access control on results.
- Handle edits/deletes.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.