download

Design a chat app in 45 minutes. What do you do first?

System design~10 minReviewed 29 Oct 2026Free · No sign-in

Question

The interviewer says only: "Design a chat app." You have 45 minutes.

  1. Split the time into steps. How many minutes does each step get?
  2. List the questions you would ask before you draw any boxes. For each one, say what its answer changes in the design.
Show hints (3)
  1. "WHICH CHAT APP"

    "A chat app" could be a messenger for millions or a support chat on a shop's website. What must you know to tell them apart?

  2. "WORDS INTO NUMBERS"

    "Fast" and "lots of users" can't size anything. Which numbers can? Think about users, messages, history and speed.

  3. "WHERE THE MINUTES GO"

    Spend the most time on the hard part, the deep dive. Keep the last 5 minutes to sum up and name the weak spots.

Show checked explanation

Ask before you draw: what must the app do, and for how many users? Agree on the features and turn the scale into numbers. Then follow a time plan. For example: 6 minutes on requirements, 4 on rough numbers, 12 on a high-level design, 18 on a deep dive and 5 to wrap up.

The time plan and the rough numbers were recomputed in CPython 3.12. Checked by an editor other than the author.

Walkthrough

One way to split 45 minutes:

stepminutesyou leave it with
1. Requirements6features in and out, scale, speed goals
2. Rough numbers4messages per second, storage per day
3. High-level design12a simple diagram the interviewer agrees with
4. Deep dive18one or two hard parts, worked out in detail
5. Wrap-up5weak spots and next steps

Step 1 decides the rest. Ask about functional requirements (what it does) and non-functional ones (scale, speed, reliability). Each answer changes what you build:

  • One-to-one or groups? How big can a group be? A message in a group of 500 goes to 499 people.
  • How many daily users, and how many messages each? This sizes everything else.
  • How long do you keep history? Forever and 30 days need very different storage.
  • How fast must a message arrive? "Under 1 second to a friend who is online" can be tested. "Fast" can't.
  • Phones, web or both? If one user has several devices, each one must stay in sync.
  • Online status, read receipts, photos? Often you agree to leave these out.

Write the answers where the interviewer can see them. If they say "you decide", state a guess out loud: 1 million daily users, 40 messages each.

Step 2 turns the guess into sizes. 40 million messages a day is about 460 a second on average, and peaks are higher. At 100 bytes a message, that is 4 GB a day, about 1.5 TB a year before copies.

Step 3 is the simplest design that meets step 1: the apps, a chat service that keeps connections open, a message store. Check it against each requirement.

Step 4 goes deep where the requirements make it hard. For chat, that is often getting every message, in the right order, to a phone that was offline.

Common mistakes

  • Drawing boxes in the first minute. You might design group video calls when they wanted a support chat. Then 40 minutes go to the wrong system.
  • Asking questions that get no numbers. "Is it big?" gets "yes". Ask "How many daily users?" and write the answer down.
  • Spending 15 minutes on exact estimates. You need the size, not the decimals. About 460 or about 500 messages a second leads to the same design.
  • Running out of time in the deep dive. With no wrap-up, the interviewer hears no summary and no weak spots. Start the wrap-up by minute 40.

Follow-up questions

  • "The interviewer wants to go deep on one part right away. Do you stick to your plan?" No, follow them. The minutes are a guide, not a rule. Sketch the big picture in a minute so the deep part has a place, go deep, and still keep the last 5 minutes for the wrap-up.
  • "How do you choose what to go deep on?" Pick the part your requirements make hard, and ask the interviewer if they agree. For a ticket shop, that is selling the last seat only once. Say why you chose it.

What a strong answer covers

Asks about features and scale before drawing, and turns vague words into numbers. Follows a time plan with the most time on the hard part and 5 minutes to sum up and name weak spots.

Open in interactive practice deck →

Original OfferVibe question. Topic idea from System Design Interview: An Insider's Guide (Alex Xu, 2020); text, examples and code are our own.
© 2026 OfferVibe · Text CC BY-NC-SA 4.0 · code MITFree to share and adapt with credit, not for commercial use. Code samples are free for any use.