Even intervals to schedule your task Five tips for unit testing in Elixir

Managing fault tolerance in Elixir with supervision trees

I just published a post today ‘Robust compute for RDF queries: Managing fault tolerance in Elixir with supervision trees’.

The post briefly reviews the process model of Erlang (and Elixir) and introduces the following abstractions in Elixir: GenServer, Supervisor, and DynamicSupervisor.

It then develops a demo Elixir application that can be used to query DBpedia for random resources and save the results into GenServer processes. It goes on to show how processes can be created under OTP supervision trees both statically and dynamically and how they are automatically recreated when they error.