January 2018
Intermediate to advanced
220 pages
5h 5m
English
Process supervision begins with the supervisor Behaviour. You’ll get an overview of it in this section. Over the next few sections, you’ll see how to customize supervisor processes. Then we’ll build a supervisor to monitor all the game processes in Islands.
Like GenServer, supervisor is an Elixir Behaviour that wraps an OTP Behaviour. In this case, that is :supervisor. Also like GenServer, we can spawn new processes from supervisor modules. These supervisor processes will do all the starting, monitoring, restarting, and stopping of other processes within an application.
We call any process under supervision a child process of the supervisor. Child processes can be workers, like ‘GenServer‘ processes, or ...
Read now
Unlock full access