Erlang supervisors and let-it-crash: fault-tolerant design
10 steps · about 5 h 17 min · Intermediate
- Erlang: The Movie (video, YouTube (Ericsson, 1990), 12 min)
A short demo of a live system surviving faults shows what the design is for before you meet the details.
- Why You Should Use Erlang in 2023 (article, Serokell, 10 min)
A plain-language overview of processes, supervisors and what 'let it crash' does and doesn't mean.
- Errors and Processes (tutorial, Learn You Some Erlang, 40 min)
Links, monitors, exit signals and trapping exits are the building blocks supervisors are made from, so learn them first.
- Fault tolerance 101 (doc, Joe Armstrong, QCon London 2014, 15 min)
Erlang's creator explains the reasoning: failures can't be prevented, so you detect and contain them.
- Who Supervises The Supervisors? (tutorial, Learn You Some Erlang, 45 min)
This step moves from hand-written restart loops to OTP supervisors, with restart strategies and child specs.
- Chapter 17: Supervisors: Let Someone Else Worry (article, Let Erlang Crash, 20 min)
A second, compact explanation of one_for_one, one_for_all and rest_for_one that reinforces the strategy choice.
- Overview — OTP Design Principles (doc, Erlang/OTP official documentation, 15 min)
The official description of supervision trees and behaviours anchors your understanding in the real docs.
- Building Applications With OTP (tutorial, Learn You Some Erlang, 50 min)
It shows how to design a real tree, including the 'onion layer' idea and what happens to state when a worker is restarted.
- The Do's and Don'ts of Error Handling (video, Joe Armstrong, GOTO 2018, 50 min)
Now that you know the mechanics, this talk covers when to crash and when to handle errors.
- Stanford Seminar - Faults, Scaling, and Erlang Concurrency (video, Joe Armstrong, Stanford EE380, 1 h)
It closes by tying fault tolerance to scalability and listing the principles any fault-tolerant system needs.