Examples of "fallback" tasks for error recovery?

Thanks! Here are some references I found for caching and the “circuit breaker” pattern, along with some implementations in Elixir:

  • How to write a caching server in Elixir

  • Cachex

  • CircuitBreaker (Martin Fowler)

    The basic idea behind the circuit breaker is very simple. You wrap a protected function call in a circuit breaker object, which monitors for failures. Once the failures reach a certain threshold, the circuit breaker trips, and all further calls to the circuit breaker return with an error, without the protected call being made at all. Usually you’ll also want some kind of monitor alert if the circuit breaker trips.

  • Circuit Breaker Pattern in Elixir (Allan MacGregor)

  • Hex package search

1 Like