Supervisors

Aug 22, 2023
1 min read 59 words Elixir
Table of Contents

Elixir Supervisors

  • restarts child processes when they fail

Strategies

  1. :one_for_one

If a child terminates, only that process is restarted.

  1. :one_for_all

If a child terminates, all other children are terminated. Then all children (including the terminated one) are restarted.

  1. :rest_for_one

If a child terminates, the terminated child and the rest of the children started after it, are terminated and restarted.

Send us your comments!