Anonymous · shared experience1 Oct 2025 · 5 views
Capital One: Reply threads for a team chat app
Problem. Design the backend for message threads in a team chat app. A user can reply to one message in a channel, and the replies live in a side thread so the main channel feed stays clean.
What was asked.
- List the non-functional needs and say why each matters.
- Define the data model and how messages, threads and channels relate.
- Define the APIs and the core flow.
Follow-ups in the interview.
- Draw the ER model for every store the feature uses.
- How do you keep data durable? Replicas, write-ahead logs and backups were not enough; the interviewer kept asking for more options.
- Write code for the API calls, and optimise key parts.
What mattered. The candidate lost points for using two API calls where one would do and for not having more durability options ready. Having alternatives for each decision was the signal.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.