Fault Isolation: BEAM Processes' Crash Containment

BEAM processes are completely isolated and do not share memory, which enables Erlang's 'let it crash' philosophy. If one lightweight process fails, it does not affect others, allowing supervisors to restart only the faulty component and prevent system-wide crashes.

The top 3

  1. BEAM's 'Let It Crash': A Philosophy Beyond Traditional Error Handling: Unlike typical systems that try to prevent every error, BEAM's 'let it crash' philosophy embraces process failure, allowing individual components to crash without bringing down the entire application. Supervisors then automatically detect and restart the failed processes, ensuring high availability and system resilience.
  2. Supervisor Trees: BEAM's Hierarchy for Uninterrupted Service: A core component of BEAM's fault isolation is the supervisor tree, a hierarchical structure where supervisor processes monitor and manage worker processes. If a worker fails, its supervisor can restart it based on predefined strategies (e.g., one-for-one, one-for-all), ensuring continuous operation and preventing cascading failures.
  3. Erlang/BEAM's Origin: The Unparalleled Uptime Requirement: The advanced fault isolation and 'let it crash' design of Erlang/BEAM were initially developed by Ericsson to meet the stringent uptime demands of telecom systems, aiming for 'nine nines' (99.9999999%) reliability, a level of fault tolerance rarely matched by other runtimes.

Sources

Open the full topic