July 2021
Intermediate to advanced
176 pages
4h 14m
English
Processes in Elixir can be linked together, and Task processes are usually automatically linked to the process that started them. This link is simply called a process link. Process links have an important role when building concurrent and fault-tolerant applications. They help us immediately shut down parts of the system, or even the whole system when needed, preventing the application from running with a bad state. Let’s see why process links are useful and how they work by looking at a few examples. The following figure shows three processes linked together:

As you can see, Process C has just crashed. Imagine that Process B ...
Read now
Unlock full access