Connecting billions of users with Erlang, Mnesia, and FreeBSD. Discover the backend architecture behind the world's most popular chat app.
Send a message to see how it travels through the server stack.
Auth & Encryption
Routing Table (RAM)
Message Archive
Signal Protocol
Encryption
Authentication
& Decryption
Checks User
Status (Online?)
Decryption &
Display
How WhatsApp works as a business and keeps you safe.
Uses VoIP (Voice over IP). While text uses TCP for reliability, calls use UDP (User Datagram Protocol) for speed, prioritizing real-time delivery over perfect quality.
Ephemeral data stored in Cassandra with a TTL (Time-To-Live) of 24 hours. After that, the database automatically deletes the entry.
Handling groups of 1000+ users requires efficient "fan-out". Erlang sends a single message to the server, which then duplicates it for every member efficiently.
The language of telecoms. Designed for massive concurrency and fault tolerance.
A distributed, soft real-time database written in Erlang. Extremely fast routing.
The OS powering the servers. Known for its advanced networking stack.
"Yet Another Web Server". A high-performance web server for Erlang.