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.
-
Mutate state via
cmd/2actions. - Hibernate to checkpoint storage.
- Thaw into a new in-memory agent struct.
This keeps persistence behavior explicit without external services.