BEAM's Micro-Processes: Unmatched Concurrency Scale

Erlang/Elixir's BEAM VM processes are exceptionally lightweight, starting with just 2-3 KB of memory, allowing millions of concurrent actors on a single machine, compared to OS threads that typically require 1-2 MB. This minimal footprint and fast creation (microseconds) enable unparalleled concurrency and efficient resource utilization.

The top 3

  1. BEAM Micro-Processes: Kilobytes vs. Megabytes: Erlang's BEAM processes are exceptionally lightweight, typically using only a few kilobytes of memory (e.g., around 309-327 words or ~2.5KB for a new process on 64-bit) compared to several megabytes for operating system threads, enabling millions of concurrent processes on a single machine.
  2. Millions of Processes: Ericsson AXD 301's Erlang Concurrency: The Ericsson AXD 301 ATM switch, a flagship telecom product, famously ran on over 2 million lines of Erlang code and leveraged BEAM's micro-processes to achieve 'nine nines' (99.9999999%) reliability, demonstrating the VM's capacity to manage millions of concurrent processes in a high-stakes, real-world system. Ericsson AXD 301
  3. BEAM's Micro-Processes: Core to 'Let It Crash' Philosophy: The design of BEAM's isolated micro-processes is fundamental to Erlang's 'let it crash' philosophy, allowing individual process failures to be contained without collapsing the entire system, a critical feature for building highly fault-tolerant and resilient applications, especially in its original telecom domain.

Sources

Open the full topic