BEAM's "Let It Crash" Fault Tolerance

Erlang/Elixir's core philosophy prioritizes automatic recovery by supervisors over defensive programming, simplifying code and ensuring continuous system operation even after process failures.

The top 3

  1. Erlang's Birth: Telecom's Need for Unstoppable Systems: The 'Let It Crash' philosophy emerged from Ericsson's 1980s need to build telecommunications switches, like the MD-110, that required ultra-high concurrency, real-time execution, and near-zero downtime, handling thousands of concurrent connections without dropping calls.
  2. Let It Crash vs. Defensive Code: A Paradigm Shift: Unlike traditional defensive programming that tries to prevent every error, 'Let It Crash' embraces process termination, relying on external supervisors to detect failures and restart processes to a known good state. This shifts the burden of error recovery to a higher, more intelligent level.
  3. The Nine-Nines Uptime: Erlang's Legendary Feat: Erlang's fault tolerance, powered by BEAM, enabled systems like Ericsson's AXD 301 ATM switch to achieve a legendary 'nine nines' (99.9999999%) reliability, equating to just 31.6 milliseconds of downtime per year. Ericsson AXD 301

Sources

Open the full topic