ADR-0023 — Edge read replicas in the browser (Proposed)#6
Merged
Conversation
Record, as a proposed not-yet-built capability, a read-only non-voting learner replica pushed to the client (browser): bootstrap from a chunked snapshot, tail the committed log over a pull-based stream, apply commands to a local instance of the deterministic StateMachine, and serve reads locally (eventually consistent; read-your-writes via a session read-index; optional audit-chain verification). Captures the shape, the pros (local read latency, reactive UI, read scaling at zero consensus cost, offline reads, end-to-end tamper-evidence), the cons (eventual consistency, mandatory partial replication, the authz-vs-determinism tension, determinism across client builds, cold-start cost), and the dependency order (non-voting learner role → pull/streaming transport → scoped partial replication + per-client authz). Indexed in docs/adr/README.md. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01NneoGGKxBp5ZExL7D7i1Lu
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.
Summary
Adds ADR-0023 — Edge read replicas in the browser (Status: Proposed, design only — no code). Captures the decision shape and trade-offs for running a read-only, non-voting learner replica inside the client, serving reads from a local in-browser
StateMachinewith no network round-trip.What it records
StateMachine→ serve reads locally. Strictly read-only/non-voting; writes still go through the leader. Read-your-writes via a session read-index token; optional client-side audit-chain verification.Indexed in
docs/adr/README.md. Builds on the deterministicStateMachineseam (ADR-0017), the log/audit chain (ADR-0009/0011), and follower reads (ADR-0014).🤖 Generated with Claude Code
Generated by Claude Code