Skip to content

Checkpoint: review a production-ready design

10 min reading

Combine capacity, correctness, observability, authority and recovery evidence

Page details

System Design · Operate the system

10 min reading · 23 min with practice

Sources

Published · Last edited:

Prerequisite: Aggregate counts without one hot writer. For basics, use the independent System Design foundations.

More
20px

Hypothetical scenario. Northwind changes price metadata while a tenant drives cold-cache demand. A delayed export outlives a permission change, and the primary region becomes unreachable. Dev points to separate green dashboards. Priya asks how their evidence supports one truthful user response.

Maya: “Which work may continue under the surviving authority?”

Dev: “We need to connect each promise to the boundary that actually enforces it.”

Review the assembled design rather than a list of healthy components. Keep the original workload and the separately introduced operations distinct. Make release, promotion and recovery decisions using the evidence available, retaining pending or unavailable where completion cannot be established.

Which original promises are we reviewing together?

Northwind’s original catalogue exercise has one hundred visits per minute, with fifty concentrated in the first ten seconds and three HTTP reads per visit. It requires a result presented within four hundred milliseconds and price evidence no older than sixty seconds. Later reservations, search and product-view counting were introduced as separate responsibilities, each with its own units.

The release must preserve the catalogue observation rule and the reservation authority rule. A faster stale price display does not satisfy the joint goal. A seller dashboard’s delayed counter cannot decide scarce inventory. A successful local reservation does not prove provider payment completion. Begin the review by stating which response carries which meaning.

Predict the permitted response for each affected operation before continuing. Can browsing serve an older description? Can checkout accept a stale quantity? May the export complete after revocation? Which evidence permits standby promotion? A useful design can give different answers because the operations have different obligations.

Follow enforcement across the whole path

The cache checks scoped identity and source-age evidence before reuse. A miss enters a bounded refill path. Tenant admission controls a declared arrival envelope; concurrency controls occupied slots. Neither grants permission to disclose data. The read or effect boundary still applies the relevant resource authorization.

A reservation performs its protected local transition against authoritative stock. Its downstream intent survives a worker restart. External provider uncertainty retains the original operation identity and evidence. Recovery workers use guarded ownership without assuming that a changed generation revokes an already submitted external call.

A production decision follows promises through enforcement and recoveryThe user contract leads to scoped admission and authorization, then to a valid read or protected effect. Outcome measurements observe that path. Compatible change and recoverable history support restoration without replacing missing evidence with invented success.User promiseEligible outcomeAdmission + scopeEnforcing boundaryRead or effectEvidence retainedCompatible change + recoverable historyMeasure, reconcile, then expand
Each arrow needs a contract; component availability alone is insufficient.

Review one integrated production envelope

Hypothetical scenario. Assemble the catalogue's normal, cold-cache, one-worker-loss and source-outage conditions into one review. For each, retain the same market/currency selection, evidence-age limit and client deadline. A capacity alternative that serves an old or unauthorized result has changed the promise.

Review one integrated production envelope — selected design evidence
ConditionSafety evidenceProgress / capacity evidence
Cold + worker lossSame content and authority rulesSurvivor and source envelope
Source unavailableNo invented current priceBounded unavailable outcome
Restore / releaseCompatible state + fenced writerAdmission and reconciliation plan
Operational changes affect the same serving contract and must feed its outcome evidence.Operational changes affect the same serving contract and must feed its outcome evidence. Request / authority to Serving / shared source: contract enforcement; Release / recovery to Serving / shared source: changes state and capacity; Serving / shared source to Release / recovery: outcome evidence.Request /authorityServing / sharedsourceRelease / recoverycontract enforcementchanges state and capacityoutcome evidence
Operational changes affect the same serving contract and must feed its outcome evidence. Enlarge the diagram to inspect its labels; the surrounding records and explanation give the text alternative.

The packet includes source and cache record identities, authority epochs, deadline propagation, admission, tenant checks, release compatibility and restore evidence. Assign each shared dependency an operational owner. A source outage can correlate failures across every otherwise healthy application replica; multiplying independent availability percentages would conceal that relationship.

Choose a falsifiable release condition and a bounded rollback path. A cache bypass changes source demand, a restore changes knowledge of external effects, and a canary can persist data that an old binary cannot understand. Review these changes together rather than certifying each component independently. State the residual unproven claim and the measurement needed to resolve it.

Recalculate one recovery-pressure example

Hypothetical worked example. Return to the selected busy interval: fifty visits in ten seconds give 50 ÷ 10 = 5 visits per second. Three HTTP reads per visit give 5 × 3 = 15 HTTP reads per second. This remains the original browsing load; it excludes the separately introduced search and reservation actions.

Choose, for this checkpoint only, a warm cache serving twelve of those fifteen reads per second. Source misses are 15 − 12 = 3 per second under one-source-read-per-miss accounting. If the cache becomes unavailable and every request bypasses it, the source demand becomes fifteen per second. The increase is 15 ÷ 3 = 5 times that selected warm source demand.

This ratio does not prove the source will fail: capacity still requires measurement. It does prove that a fallback cannot be budgeted from the warm miss rate alone. Writes, refill duplication, retries and new features may add further demand. Apply bounded admission and useful rejection rather than assuming bypass preserves the original resource envelope.

For freshness, the earlier chosen forty-five seconds of origin evidence age, twenty seconds of residence and one second of delivery give 45 + 20 + 1 = 66 seconds. The excess over the sixty-second goal is 66 − 60 = 6 seconds. A healthy cache can therefore return an unacceptable response even when its latency is excellent.

Evaluate the release before expanding it

The new price metadata format must coexist with current readers and the saved recovery application. Expand the representation, migrate dependent readers and writers, validate the backfill, then remove the obsolete form only when the compatibility evidence supports it. A rollback image alone does not establish a working rollback.

A bounded canary limits only its actual exposure. If it writes shared state consumed by every tenant, the impact can exceed its routed request fraction. Shadow comparisons must not create duplicate reservations or refunds. Record the release configuration and stop conditions against user outcomes, including forbidden disclosure, before admitting the cohort.

Make promotion an evidence decision

The reachable standby needs more than a green probe. Inspect received, durable and applied positions against the acknowledgement contract. Exclude the old writer, preserve divergent evidence and establish the new authority. If the necessary evidence is missing, a permitted unavailable response is more truthful than an unsupported survival guarantee.

A historical restore solves a different failure from promotion. A replicated deletion may require an earlier consistent recovery point. In either case, local restored state cannot rewind a payment provider or a previously downloaded export. Reconcile external effects and permission changes before automatically replaying missing local records.

Measure the decision at the right boundary

Track presented catalogue outcomes jointly against latency and source age. Track accepted reservations, pending provider outcomes and confirmed completion separately. Observe queue age, useful recovery progress and the health of the telemetry pipeline. An empty trace search cannot prove that no external action occurred.

Tenant isolation also applies during investigation. A support dashboard, restored database and cached receipt must enforce their own reader permissions. Do not expose broad sensitive context merely to make a recovery graph easier to interpret. A required audit record follows its own retention and access contract rather than a diagnostic sampling policy.

In the wild: restore prerequisites remain concrete

PostgreSQL’s continuous-archiving documentation specifies the base and archive relationship used for point-in-time recovery. It is a concrete check on the database part of this plan. The full Northwind decision still needs independent evidence about routing, permissions, external operations and recovered useful capacity.

Everything is green except the promise

Hypothetical failure scenario. The cache responds quickly with over-age evidence, the standby answers health probes without the latest accepted reservation, and a restored worker repeats a provider action under a new identity. Component dashboards remain green while the user-facing contract fails in several independent ways.

Repair the argument at each missing boundary. Source-age validation addresses the cache result. Acknowledgement and authority evidence govern promotion. Stable identity and reconciliation address the remote effect. One more dashboard or replica cannot substitute for those different mechanisms.

Challenge the proposed mechanism

Every subsystem has a green chart. What single counterexample should an architect still request?

Reveal the design reasoning

A whole request through a changed condition, such as cold caches plus one failed worker and a source-age violation. Follow the same identity and evidence to the client. Component health cannot substitute for that joined result.

Decision and reconsideration: Approve a bounded operating envelope and named owners. Keep unsupported capacity or recovery claims explicitly unproven.

Defend the combined system

  1. Cache bypass increases selected source reads from three to fifteen per second. What follows?

    Revisit the fallback envelope

    It is a fivefold increase under the chosen accounting. Check source capacity, coalescing, retries and admission; the arithmetic alone neither predicts failure nor certifies safe recovery.

  2. The canary serves a small request fraction but changes shared rows. Is its impact equally small?

    Follow shared-state consumers

    Not necessarily. Baseline readers can observe the changed state. Bound the actual affected resources and preserve compatibility across both populations.

  3. A standby is reachable and a backup exists. May the service promise recovery?

    Require the composed evidence

    Only after inspecting the required history, authority, restore dependencies, permissions and external obligations. Presence of components does not establish the end-to-end recovery contract.

The foundation sequence has produced reusable decision artifacts. Page 41 starts a distinct short-link case and uses those artifacts to build a modest baseline before introducing new scale or failure requirements.

Northwind decision log

Evaluate useful outcomes against their actual evidence and authority boundaries.
Bound fallback load and preserve compatible, exercised recovery paths.
Next, apply the full reasoning sequence to a short-link service case.

Go deeper: recovery and aggregate evidence