Add a Supervision Tree
Explore how to build dynamic and static supervision trees in Elixir for managing process-based graph structures. Understand creating supervisors and agents to handle node states and graph management, supporting fault tolerance and dynamic process lifecycle in graph applications.
We'll cover the following...
We'll cover the following...
Our plan
We want to build a supervision tree over the process graph. And we want to use a dynamic supervision tree with a DynamicSupervisor so that we can stand up new nodes and tear down on demand.
So that’s our supervision tree. But we also want to manage a couple of agent processes for caching node state and storing the graph as a whole. For these, we can set up a static supervision tree with a regular Supervisor.
The GraphCompute.Appliation module
We can set up both trees with the start/2 ...