Erlang's "Let It Crash" for 24/7 Stability

WhatsApp's ability to maintain high availability with millions of connections is significantly due to Erlang's 'let it crash' philosophy and OTP supervision trees, which automatically detect and restart failing processes in microseconds, preventing system-wide outages.

The top 3

  1. Erlang's Supervision Trees: The 'Let It Crash' Backbone: The 'Let It Crash' philosophy is enabled by Erlang's hierarchical supervision trees, where supervisor processes monitor and automatically restart failed worker processes, ensuring system resilience without complex in-process error handling.
  2. Telecom's 99.9999999% Uptime: Erlang's Design Mandate: Erlang was specifically developed by Ericsson in the 1980s to meet the extreme reliability demands of telephone exchanges, aiming for 'nine nines' (99.9999999%) uptime, where system reboots were unacceptable.
  3. Crash-Only Software: The Counter-Intuitive Reliability Strategy: Erlang's 'Let It Crash' aligns with the concept of 'crash-only software,' where components are designed to fail safely and recover quickly by restarting, rather than attempting complex, often bug-prone, in-process error handling.

Sources

Open the full topic