production beginner

Persistence Storage Agent

Focused round-trip example for Persist.hibernate/2 and Persist.thaw/3 using ETS-backed checkpoints.

persistence storage operations ops-governance l1

Related guides and notebooks

What you’ll learn

  • How to save agent state snapshots with Persist.hibernate/2.
  • How to restore a full agent struct with Persist.thaw/3.
  • How to validate a simple round-trip in a deterministic demo.

How it works

The demo keeps one agent id and one ETS-backed storage table.

  1. Mutate state via cmd/2 actions.
  2. Hibernate to checkpoint storage.
  3. Thaw into a new in-memory agent struct.

This keeps persistence behavior explicit without external services.