techdiagrams.net
← All templates

Raft-backed config store (etcd-style)

A five-node Raft consistent core serving linearizable configuration with leases and watch notifications — the etcd/Consul architecture under Kubernetes.

Open in editor — free, no login Download JSON
CONSISTENT CORE — 5-NODE RAFT · SURVIVES 2 FAILURESPUT /config · lease 10sAppendEntries · heartbeatcatching upwatch push: /config changedService Awrites config · holds leaseService Bwatches /config/*Node 1LEADER · term 12Node 2followerNode 3followerNode 4followerNode 5follower · lagginglease: Service A must heartbeat or itskeys vanish — a crashed servicederegisters itself by silence.commit = majority (3/5): Node 5lagging never blocks a write.

What this design does

The pattern at the bottom of Kubernetes, Consul and every service registry that can't afford to lie: a small Raft cluster (the consistent core) owns the truth, clients write through the leader, and watchers get pushed changes instead of polling. Leases keep ephemeral entries honest when their owners die. Our blog post 'Raft, explained with one diagram' walks the consensus mechanics in depth.

The patterns it composes

Import it, attach your own numbers, and verify the design against failures — or read the engineering notes.