BEAM's 'Let It Crash' Philosophy & Supervisors
The BEAM VM's core fault tolerance stems from its 'Let It Crash' philosophy, where isolated, lightweight processes are designed to fail quickly and cleanly. Hierarchical supervisor trees then automatically detect these crashes and restart affected components, ensuring the rest of the system remains operational and stable.
The top 3
- Erlang's Telecom Roots: The 'Let It Crash' Origin: Born from Ericsson's stringent demand for near-perfect uptime (often cited as 99.9999999%) in telecommunication switches, the 'Let It Crash' philosophy was a pragmatic solution for fault tolerance in highly concurrent, distributed systems.
- BEAM Supervisors: Top 3 Fault Recovery Strategies: BEAM's supervisors utilize specific strategies to manage child processes upon failure: `one_for_one` restarts only the failed process, `one_for_all` restarts all children if any single one fails, and `rest_for_one` restarts the failed process and any processes started after it.
- Top Apps Relying on 'Let It Crash' for Uptime: Major applications like WhatsApp and Discord leverage Erlang/Elixir's 'Let It Crash' philosophy and BEAM's fault tolerance to achieve high availability and handle millions of concurrent users and events.
Sources
Open the full topic