B2.2.1 · dive 1 of 3 · module B2.2
The branded id is the only key.
One table, one key: the 14-byte branded id. No surrogate, no timestamp column, no secondary index — the key is the identity, and it carries namespace and mint time at once.
The idea
echo_data · property_store.ex, timeline.exA property store keeps one ETS table, and that table has exactly one key: the 14-byte branded id. There is no surrogate integer, no separate timestamp column, no secondary index — the key is the identity, and the row is the key and its value, nothing more. EchoData.Timeline states the same shape from the other side: it keys by the raw snowflake with the branded form at the edges, and adds no column the key already carries.
The key is not opaque; it is structured. The first three bytes are the namespace, and the remaining eleven are base62 of a 64-bit snowflake — so the key already carries who-this-is, what-kind, and when-it-was-minted. A store that keys by the branded id is keying by all of that at once, which is why the rows need nothing beside the value.
Codemojex keys every store this way. A player’s record sits under a PLR id, a room’s under a ROM id, a round’s under its own; the store never asks which player with a join against a name table, because the name is the key. Identity is the address, and the address is the whole of the row’s left-hand side.
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
- King — Announcing Snowflake (2010)time-ordered ids whose key order is mint order
- Erlang/OTP — the ets modulethe ordered_set whose key order is range-queryable without a sort
- Helland — Life Beyond Distributed Transactions (CIDR 2007)durable entities a restarted system rehydrates by name
Related
- BCS — the course homethe law, the id anatomy, the chapter map
- Echo Persistencethe durable floor beneath the bus