Architecture #
How the binary is put together, layer by layer, as it exists in this tree — not as it was once planned.
| Page | Layer |
|---|---|
| Overview | Startup sequence, request path, what runs where |
| Protocol | RESP server, pipelining, reply mapping, cluster redirects |
| Network | Raft transport, peer discovery, the P2P drivers |
| Storage | ledis data model, per-type keyspaces, TTLs, snapshots |
| Codec | How five data types become KV operations |
RESP client ──► uhaha/redcon ──► Raft log ──► handlers ──► ledis ──► driver.IDB
│ (leader) (110 cmds) (types) (8 drivers)
└── AUTH / PING / QUIT / RAFT / CLUSTER / MACHINE / BARRIER
Two boundaries are worth holding in mind while reading the rest of this site:
- The Raft layer owns ordering, not semantics. It decides when a write applies; the handler
decides what it means. Everything that must be identical on every replica (randomness, time) is
injected by the Raft layer and consumed by handlers through
m.Now()andm.Rand(). - The storage driver owns durability, not structure. It stores opaque key/value pairs. Every structure — a hash, a list, a score index — is encoded by ledis above the driver, which is why the same data model works on LevelDB and on IPFS.