Erlang course

Erlang Level 7: Supervision

Supervision is level 7 of 17 of the LoWisa Erlang course. It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

Updated 2026-11-25

Supervisors

  • Supervisors. A supervisor starts, watches and restarts children: the process whose only job is other processes.
  • Child specs. A child spec declares how to start a child, its restart policy and shutdown rules.
  • Clean-state restart. A restart begins from clean state: the corrupted state died with the crash, by design.

Restart Strategies

  • one_for_one. one_for_one restarts only the crashed child: siblings undisturbed.
  • one_for_all. one_for_all restarts every child together: for siblings that share fate.
  • Restart intensity. Supervisors give up after too many restarts in a window: intensity limits stop restart storms.

Supervision Trees

  • Trees. Supervisors supervise supervisors: the tree is the application’s failure-domain map.
  • Design by failure domains. Tree design asks one question: when this dies, what should die with it?
  • The error kernel. The kernel of the tree holds the state that must never be lost: smallest, simplest, most protected.

Before and after this level

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.

Frequently asked questions

What does Erlang Level 7: Supervision cover?

Supervisors, Restart Strategies, Supervision Trees: 3 lessons and 9 ideas.

What should I know before this level?

The level before it, Level 6: OTP Foundations, which covers Behaviours, GenServer, Standardising Concurrent Components.

Learn Erlang on your phone

The first level is free. LoWisa is on Google Play and the App Store.