Introduction to Processing the Graph
Explore how to map graph nodes to Elixir processes using genservers and manage them with supervision trees. Understand handling state preservation and fault recovery by integrating process caching and dynamic supervisors to maintain graph structure and reliability.
We'll cover the following...
We'll cover the following...
It’s time to come back to Elixir. We’ll return to native graphs and make use of some OTP machinery—agents, generic servers (or genservers), and supervisors.
We know that libgraph nodes could contain any Elixir term. Well, that also means we could use an Elixir process as a graph node.
Graph with processes
Let’s try something here. Let’s try creating a graph with processes for nodes and then build a supervision tree over that graph. We’ll use genservers for those processes and ...