The Circuit Breaker Pattern in Elixir

Interesting architecture patterns in Elixir

Allan MacGregor
Better Programming
Published in
6 min readNov 5, 2020

--

decorative: patterned rectangles hanging in rows
Photo by Adrien Olichon on Unsplash

A circuit breaker is used to detect failures and encapsulates the logic of preventing a failure from constantly recurring during maintenance, temporary external system failure, or unexpected system difficulties.

In the age of microservices, we are more than likely to have services that are calling and…

--

--

Senior Engineering Lead @Humi, Regularly writing about software engineering and technology