Skip to Main Content
Mastering Elixir
book

Mastering Elixir

by André Albuquerque, Daniel Caixinha
July 2018
Intermediate to advanced content levelIntermediate to advanced
574 pages
14h 7m
English
Packt Publishing
Content preview from Mastering Elixir

Minimizing error effects with supervision trees

In the previous section, we worked with supervisors and observed how they enable error-recovery. They're crucial components when building fault-tolerant applications, and they significantly change the mindset from the prevalent error-recovery mechanisms, such as try/catch. Having seen how we can use supervisors to detect and recover from runtime errors, we'll now focus on how we can combine them, creating supervision trees, to have fine-grained error recovery in our applications, reducing the effect of an error on the overall system.

To build a supervision tree, you must consider the effects on the rest of the system when a certain processes terminates due to an error. This way, you'll group ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Testing Elixir

Testing Elixir

Andrea Leopardi, Jeffrey Matthias

Publisher Resources

ISBN: 9781788472678Supplemental Content