WhatsApp's Erlang Feat: Millions of Live Connections Per Server
WhatsApp famously leveraged Erlang on the BEAM to handle 147 million peak concurrent connections and up to 2 million simultaneous connections per server, processing billions of messages daily with a small engineering team.
The top 3
- WhatsApp's Erlang Choice: Telecom's Proven Scale: WhatsApp adopted Erlang due to its roots in the telecom industry (Ericsson), which engineered it for 'five nines' (99.999%) availability and handling millions of concurrent phone calls, perfectly matching WhatsApp's need for reliable, high-volume messaging with minimal resources. [3, 2, 19]
- Erlang's Lightweight Processes: Unmatched Memory Efficiency: Erlang processes are 'green threads' managed by the BEAM VM, consuming only ~2-3 KB of memory initially, allowing millions of concurrent processes on a single machine. This is drastically more efficient than OS threads, which typically require 1-2 MB of stack space per thread. [1, 7, 12]
- Beyond WhatsApp: Erlang/Elixir's Million-User Feats: Discord leverages Elixir (on BEAM) to manage millions of concurrent users and real-time communication, with a small team handling dozens of millions of messages per second. Other high-scale users include Cisco (90% of internet traffic), Bet365, and Goldman Sachs. [9, 8, 6, 5]
Sources
Open the full topic