Labs
โบ
chat app
0 / 13
steps
Step 1 of 13 ยท Intro
Design a chat app
Messages delivered in order, with ticks, to phones that are often offline.
How it works
โบ
Send: the message reaches a gateway holding the connection.
โบ
Deliver: the recipient's gateway pushes it, or it waits in storage.
What you'll build
The API and the data behind it
A gateway and a database for 500 requests a second
A queue, workers and a cache for 15,000, then 50,000
A rate limiter that stops a spam flood
A design that survives a cold cache, a lost gateway, a lost worker and a lost primary