InterviewLegend

Design a Chat System

Frequently asked
Alex Chen50 min readAdded 548 real interview reports

A chat system moves short text messages between people in close to real time. A sender types a message, the server saves it, and every other member of the conversation sees it within a fraction of a second if they're online, or as soon as they reconnect if they aren't. Small signals ride along with the messages: who's online, who has received a message, who has read it. Candidates report this prompt from Uber's high-level design round at every level from SDE-1 to Staff, in the US, India, Europe, Brazil and Canada. It's phrased as "design WhatsApp", "design Messenger", "a Slack kind of messaging app" or just "a chat application". The product is familiar. The work is in keeping tens of millions of connections open, getting each message to the right one, and staying correct when phones drop off the network.

The Uber angle
Uber runs chat in production, so expect interviewers who know where it breaks. One SDE-2 candidate listed the expected pieces as one-to-one chat, group chat, offline messages, a sudden surge of messages and WebSockets. Get the skeleton up in about ten minutes and spend the rest on the deep dives below.

UberPremium lesson · System design round

The Uber design, worked end to end.

  1. The API and data modelSystem design · Frequently asked
  2. The design, drawn out2 diagrams
  3. 6 deep divesWith the tradeoffs
Get the Uber questions

$49 a year · all 107 companies · instant access

548 Uber interview reports · guide updated

Uber interview guide

Know what Uber asks before you walk in.

30 coding · 8 system design · 21 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Uber interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.