Code Room
System designMediumsd-g532
Subject Team chatLevel Entry–Mid~35 minCommon in Distributed systems interviewsIndustries Software development, Technology

Question

Design a simple group chat for a small team of about 50 people in a handful of channels. Messages should appear to other online members within a second or two, and a user who reconnects should be able to load the recent history of a channel. Volume is low — a few thousand messages a day. Cover how messages are stored, how real-time delivery works, and how history is fetched.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts — data model, bottlenecks, consistency, failure modes — and name the trade-offs you are making.

Narrate your design
Loading whiteboard…
Run or narrate your approach, then ask the coach.