System design interview questions
Design a chat app (chat app like WhatsApp)
"Design a chat app like WhatsApp." You ask questions and learn: 5 million people are connected at once, sending 5,000 req/s, and 3 in 10 of those are new messages. Messages must arrive in well under a second.
Practise this roundPart of Bugpit Pro. A 25 minute timed round in your browser: draw the design, run it against the traffic, then see the interviewer's checklist.
The question
5,000 requests a second at the peak, 30% of them writes. You have 25 minutes and every part on offer: servers, load balancers, caches, databases, queues and more.
How the round works
Like a real interview, the canvas starts empty and the checklist stays hidden until you submit. Bugpit then sends the traffic at your design, crashes a machine, and marks what held up, what fell over and what it would cost each month.
What a strong answer covers
Show it (try the round first)
Chat needs a connection that stays open, so the server can push a message the moment it arrives. That's a realtime gateway, not a load balancer.
Open connections are the limit, not requests. One gateway can't hold 5 million, so you need several, and room to spare when one is lost.
3 in 10 requests are writes, far more than a normal site. Size the database for writes, or pick a store built for them.
A cache helps less here: messages are new, and each person reads their own.
The point: Chat is limited by connections held and by writes. Both are different from the read heavy systems most people practise.
More system design interview questions
- Design a link shortener (URL shortener like Bitly)
- Design checkout for a flash sale
- Design an app for users worldwide
- Design a news feed (news feed like Twitter or Instagram)
- Design search for a shop
- Design a notification system
- Design a photo store (photo storage like Instagram)
- Design a rate limiter
- Design a payment system