About the project
excache is a cache layer in Elixir built on the OTP actor model: concurrent and resilient to single-process failures. The actor model builds a program out of many lightweight, isolated processes that share no memory and talk to each other through messages, and OTP is the set of Erlang and Elixir libraries that implements it. As a result many parts of an application can use the cache at the same time, and when one process dies the rest carry on. Tests check how the layer behaves.
The challenge
Many processes use the cache at the same time, so the layer has to be concurrent and must not fall over when one of its processes dies. The OTP actor model provides that resilience, but it had to be used in a way that keeps one element's failure from dragging down the rest.