B2.3.3 · dive 3 of 3 · module B2.3
A tier, not a source of truth.
CHAMP is an L0 memory tier rebuildable from the Graft floor, never a separate truth. The default is BrandedMap; CHAMP earns its place when placement is a contract or the shape must be mirrored.
The idea
echo_data · champ_view.ex, branded_champ.exCHAMP is fast in-heap state, and the layered design is firm about what that makes it: an L0 memory tier whose contents are rebuildable from the durable floor, never a separate source of truth. EchoData.ChampView is that rule as code — it folds a stream of decoded entries from a Graft volume into a fresh map, so a view can be re-derived after a crash with no bespoke recovery path.
The default is the other map. EchoData.BrandedMap rides the BEAM’s native hash-array-mapped tries and wins the general case, so it is what a store reaches for unless it has a reason not to; CHAMP earns its place only where placement-as-contract or cross-runtime mirroring is the point. Stated plainly: choose the native map for speed, the branded CHAMP for a placement you can pin and rebuild.
Codemojex treats its CHAMP views as derived. The players or rooms map is an in-memory projection; after a crash a server swaps in a whole map re-folded from the Graft commit log, atomically, and play resumes. The floor of B5 is the truth; the trie is a tier over it that any node can rebuild.
The doors
the sibling coursesEchoMQ — the protocol, in depth
The bus B3 narrates, taught rung by rung: the keyspace, the Lua inventory, and the 3.0 Stream Tier — XADD, XREADGROUP, XACK — with conformance on Valkey.
Redis Patterns Applied
The substrate patterns under the bus: sorted sets, atomic Lua moves, locks, and streams — the judgement layer.
/echo-persistenceEcho Persistence — the durable floor
Beneath the volatile tiers: the Graft page engine built twice, the commit-LSN loop, and the stream archive on Tigris. Where Part I says state lives somewhere, this says where it lives durably.
References
sources · relatedSources
- Helland — Life Beyond Distributed Transactions (CIDR 2007)durable entities a restarted system rehydrates by name
- Kreps — The Log (LinkedIn Engineering)time-ordered, append-only data and rebuilding state by replaying it
- Steindorfer & Vinju — CHAMP (OOPSLA 2015)the compressed hash-array-mapped prefix tree, two bitmaps per node
Related
- BCS — the course homethe law, the id anatomy, the chapter map
- Echo Persistencethe durable floor beneath the bus