Repository navigation
docs: registry backend evolution — Cloud Map → DynamoDB → etcd Watch - #175
Merged
Merged
Conversation
…→ 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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