Skip to content

docs: registry backend evolution — Cloud Map → DynamoDB → etcd Watch - #175

Merged
bpalermo merged 2 commits into
mainfrom
docs/registry-backend-evolution
Jun 13, 2026
Merged

bpalermo merged 2 commits into
mainfrom
docs/registry-backend-evolution

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Design-rationale record for the registry backend journey, ending at etcd watch-driven sync.

Throughline: each backend choice was really about how endpoint changes propagate, against the recurring cross-replica last-old-exit skew.

  • Kubernetes — zero-dep default, not the scale target.
  • Cloud Map — dropped (chore(registry)!: drop AWS Cloud Map backend support #150) for the async-register health race; lost deterministic control of endpoint state transitions.
  • DynamoDB — managed, multi-region (global tables), snapshot-first resilient; but Streams CDC can't close the skew (per-item order, 2-reader/shard cap, gated on the write-behind flush).
  • etcd — native Watch (push, global order, no reader cap) closes it; implemented as registrar↔etcd watch (poll backstop), agents stay behind the registrar (apiserver analogy).

Includes the multi-cluster decision axis (single-region → etcd+Watch; multi-region → DynamoDB global table + peer-watch) and the three-way e2e (DDB-poll 3 / etcd-poll 1 / etcd-watch 0 drops; hot-restart hitless throughout).

🤖 Generated with Claude Code

bpalermo and others added 2 commits June 13, 2026 15:11
…→ etcd Watch

Decision-rationale record for how the registry backend got to etcd
watch-driven sync. Frames every backend choice as a propagation-channel
decision against the recurring cross-replica last-old-exit skew: Cloud Map
dropped (#150) for the async-register health race (lost control of state
transitions); DynamoDB chosen for managed/multi-region durability but its
Streams CDC can't close the skew (2-reader cap, gated on write-behind);
etcd native Watch closes it. Covers why agents stay behind the registrar
(apiserver analogy), the multi-cluster tiering / decision axis, and the
three-way e2e (DDB-poll 3 / etcd-poll 1 / etcd-watch 0 drops).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Update the backend decision doc per directive: keep etcd for multi-region
(don't adopt DynamoDB solely for global tables). Per-region etcd + async
origin-partitioned cross-region replication, eventual consistency accepted —
which dissolves the region-locality/blast-radius/CP-partition objections to
a single shared etcd. Documents the prerequisite key-schema change
(cluster in the key), the etcd<->etcd replicator (region-local registrar,
lease-managed foreign keys for no-unilateral-GC self-heal), and scopes it as
proposal 006.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@bpalermo
bpalermo merged commit b9ae282 into main Jun 13, 2026
9 checks passed
@bpalermo
bpalermo deleted the docs/registry-backend-evolution branch June 13, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant