Search⌘ K
AI Features

Cache and ETS

Learn how Elixir employs ETS as a high-performance in-memory cache to store and reuse computed data across processes. Understand different caching strategies, including local caches per node and distributed cache sharing, to build resilient and scalable distributed applications with Elixir.

We'll cover the following...

What is cache?

Moz fetched all of their data upfront using a database-less strategy. Another company called “Ministry of Games” kept mutable data in memory and persisted it to the database at specific moments and time intervals. Those are great examples of leveraging the power of Elixir to design optimal solutions.

We can also leverage the tooling provided by the VM machine on simpler problems, such as caching. A cache allows us to store the result of a computation and reuse it several times, perhaps by multiple ...