← Lab

Build a chat app

One-to-one and group chat for millions of users. Messages should arrive in real time, survive offline periods and keep their order.

Architecture so far

CLIENTSender appCLIENTRecipient app

Decision 1 of 6

Users expect a message to appear on the recipient’s phone within a second or so, without them refreshing.

How do messages reach the recipient in real time?