WhatsApp: Message Delivery
Medium · system design problem
A flaky network link to Kafka, then a Cassandra compaction storm.
2M users are online, each holding a WebSocket connection to the gateway, sending 40k req/s in total. Sent messages are published to Kafka and fanned out by delivery workers into Cassandra; inbox reads hit a Redis cache first. The network team is doing "routine maintenance" today.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.