Visualisation of Elixir Supervision Tree Strategies
Elixir has built in four strategies for supervision trees to enable fault tolerant systems. The names of strategies are :one_for_one, :one_for_all, :rest_for_one, :simple_one_for_one. Enjoy the visualisations…
Strategy / :one_for_one
Strategy / :one_for_all
Strategy / :rest_for_one
Strategy / :simple_one_for_one
Same as :one_for_one. But it needs to implement Supervision.Spec and you need to specify only one entry in child specification. That means every child spawned from this supervisor is the same kind of a process.