Erlang - Elixir: What is a surveillance tree?

I’m doing a tutorial and it says: "In this guide, we will learn how to create a complete Elixir application with its own supervision tree, configuration, tests, etc.

In plain English, what is a control tree in Elixir?

Thank!

+4
source share
2 answers

In Erlang and Elixir applications, the structure is imposed using top-level “supervisor” processes that start other processes in your application. These other processes may include other leaders who also have their own children, and this recursive structure takes the form of a tree, which means “observation tree”. Process control is what Erlang / Elixir provides fault tolerance functions because failure is isolated from any branch of the tree, where the supervisor of this branch can either restart failed children or allow itself to fail, to the next top leader in the tree.

+14
source

Since you noted Erlang, I will answer this point of view of Erlang. But again Erlang, Elixir is almost the same.

Erlang - concurrency . , concurrency. , , /. .

, ,

  • Java () concurrency
  • Go concurrency
  • , concurrency.

2 .

. . - , . . . .

. . , , . / - , .

, ( S0) S1, S2. S2 S3. S3 5 , W1-W5. - Erlang/Elixir.

, RADIUS. https://github.com/sigscale/radierl/blob/master/doc/supervision.png

, , , .. , .

0

Source: https://habr.com/ru/post/1686842/


All Articles