# Elixir Level 12: Data & State

> Level 12: Data & State of the LoWisa Elixir course: ETS, Persistent Data Concepts, Concurrent State Architecture. 3 lessons and 9 ideas, each explained in one line.

Data & State is level 12 of 16 of the [LoWisa Elixir course](/courses/elixir/). It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

## ETS

- **ETS from Elixir.** **:ets** serves in-memory term storage: millions of concurrent reads beside an owning writer.
- **Read concurrency.** Tables tuned with read_concurrency serve **hot** lookups without a process bottleneck.
- **Ownership.** ETS tables die with their **owner**: heirs and supervisors make their lifetime a design.

## Persistent Data Concepts

- **Ecto awareness.** Persistence in Elixir usually rides **Ecto**: changesets validating data on the way to storage.
- **Changesets as boundaries.** A **changeset** is the boundary validator: cast, validate, constrain, then persist.
- **External stores.** BEAM state is fast but **ephemeral**: durable truth lives in databases, caches rebuilt on boot.

## Concurrent State Architecture

- **Registry.** A **Registry** maps names to processes: process-per-entity systems findable by key.
- **Process per entity.** One process per **entity**: per user, per game, per device: is the BEAM’s signature architecture.
- **Read paths versus write paths.** Writes serialise through owners; reads scale through **ETS**: the two-path architecture, measured.

## Before and after this level

- **Before:** [Level 11: Distributed Elixir](/courses/elixir/level-11-distributed-elixir/): Nodes, Clustering, Distributed Failure.
- **Next:** [Level 13: Testing](/courses/elixir/level-13-testing/): ExUnit, Concurrent Testing, Property-Based Testing Concepts.

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See [Checkpoints and flashcards](/help/checkpoints-and-flashcards/).

## Frequently asked questions

### What does Elixir Level 12: Data & State cover?

ETS, Persistent Data Concepts, Concurrent State Architecture: 3 lessons and 9 ideas.

### What should I know before this level?

The level before it, Level 11: Distributed Elixir, which covers Nodes, Clustering, Distributed Failure.

## Learn Elixir on your phone

The first level is free. LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/elixir/level-12-data-and-state/ · Updated 2026-11-25
