How WhatsApp Served Millions of Connections per Server With a Tiny Team
How Erlang's lightweight process model and deep FreeBSD tuning let WhatsApp run hundreds of millions of users' traffic with a remarkably small team.
Engineering at scale
8 articles · 32 min of reading
How Erlang's lightweight process model and deep FreeBSD tuning let WhatsApp run hundreds of millions of users' traffic with a remarkably small team.
How WhatsApp built low-latency, end-to-end encrypted voice and video calling on infrastructure originally designed for asynchronous store-and-forward messaging.
WhatsApp famously ran hundreds of millions of users on a strikingly small engineering team by designing operational simplicity into the system itself.
How WhatsApp delivers encrypted media efficiently by separating attachment transfer from message delivery and verifying content by hash.
WhatsApp's small infrastructure team pushed FreeBSD's kernel to hold enormous numbers of concurrent connections per server instead of scaling out horizontally.
How WhatsApp re-architected linked devices to connect to its servers independently, without a phone relaying every message, while keeping end-to-end encryption intact.
How WhatsApp partnered with Open Whisper Systems to bring Signal Protocol encryption to every chat, without most users noticing the migration.
How WhatsApp's store-and-forward architecture and layered acknowledgment model deliver messages reliably even when recipients are offline.