Other

excache

Cache layer in Elixir on OTP

A cache written in Elixir on the OTP actor model, for applications where many processes read and write data at once. One failing process does not stop the others.

excache

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.

What we did

  1. 01

    A cache layer written in Elixir and spread across OTP processes

  2. 02

    Concurrent access to the cache from many application processes

  3. 03

    Failure isolation: a single process can die while the others keep running

  4. 04

    Automated tests that check how the layer behaves

Related projects

Describe your project.

A free quote comes back within an hour during working hours.

Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.