Case study demo
Chat system
Send messages between users over persistent connections.
An interactive demo of how this system behaves. It runs in your browser.
Full interview walkthroughChat system (WhatsApp / Slack)Concept it usesAPI styles: REST, gRPC, WebSockets and SSEConcept it usesMessage queues and KafkaConcept it usesService discovery: how services find each other
Design it
Every message, once, even when a server fails
Thirty people chat in pairs and groups, through three chat servers. Some phones go offline, and some delivery receipts get lost, so the server sends a message again. Pick how the phones behave, then check the design.
The goals
- After the crash, every online phone has every message sent to it.
- No phone shows the same message twice.
When a phone reconnects
When a copy arrives twice
The check runs the same engine as the demo on this page for 30 simulated seconds under each condition, with a fixed seed, so a design always gets the same result. There is no score: each goal passes or fails.