System Design Atlas
LOCAL GUEST MODERead and practice without an account.

Your saved topics and reading progress stay in this browser. Sign in to sync supported profile and progress data.

Multi-Region Network Partition

Both regions believe they should accept writes after a network split.

● HardDrill 081 min2 prerequisites
My progress
Topic tools

Layout updated

Explore the design, then rehearse the decisions without looking.

Prompt

Both regions believe they should accept writes after a network split.

A is a time-limited permission slip. A disconnected former owner may still be alive, so the resource must reject its old slip.

Constraints

  • Keep only one authorized writer during a network split.
  • Do not resume old-region writes without checking its state.

Think first

Take five minutes to state the failure, the evidence you need and your first safe move.

5:00

Staged reveal

First move

A grants a new ownership number and storage checks it on writes.

What to check

Watch reachability, expiry and epochs presented at storage.

Recovery

Let the minority stop writes; the surviving authority issues a higher and the protected resource rejects old owners even if they are still running.

What you give up

Synchronous remote agreement adds latency. Asynchronous replicas may miss recent accepted writes, so safe promotion can require waiting or .

Architecture and technical reference

High-level design

Multi-Region Network Partition
G client->new 1. Route write request leader->fence 2. old epoch quorum->new 3. majority promotion new->fence 4. Validate current epoch quorum->fence 5. Publish authorized epoch client Clients edge quorum Quorum / Lease Authority compute leader Current Region Leader compute fence Epoch Validation compute new Surviving Majority compute
  • Edge
  • Compute

━━ Synchronous┄┄ Asynchronous···· Recovery / control▧ Fault

Select a component or follow a numbered connection.

Each arrow is one interaction. Request, background and recovery branches are not one linear transaction.

Read the 5 flow steps

Problem statement

A region becomes unreachable, but its old writer may still be running. How does a second region safely take over?

Functional requirements

  • Choose which region may accept writes.
  • Reject writes from the previous owner.
  • Recover the returning region before it rejoins.

Non-functional requirements

  • Keep only one authorized writer during a network split.
  • Do not resume old-region writes without checking its state.

Entities

Entity / logical owner
Authoritative state

API design

Operation / inputResponse and retry contract
Decision contractIdentify acceptance, retry identity, version/ and the response on uncertainty.

High-level design component walkthrough

Client / user

Clients

Write requests

Why, tradeoff and connected operations

An application or user-facing endpoint starts or receives this flow.

Tradeoff: Minority-side writes may be rejected

Connected operations: Route write request

Coordination / ownership

Quorum / Lease Authority

Issue ; elect owner

Why, tradeoff and connected operations

Make ownership/version changes explicit; downstream resources must reject stale owners.

Tradeoff: Availability loss without majority

Connected operations: majority promotion; Publish authorized

Backend service

Current Region Leader

May be isolated

Why, tradeoff and connected operations

Isolate this operation so it can scale and fail independently from storage.

Tradeoff: Old leader may keep serving stale

Connected operations: old

Coordination / ownership

Epoch Validation

Reject stale old-leader writes

Why, tradeoff and connected operations

Make ownership/version changes explicit; downstream resources must reject stale owners.

Tradeoff: Every write must validate

Connected operations: old ; Validate current ; Publish authorized

Backend service

Surviving Majority

New authorized writer

Why, tradeoff and connected operations

Isolate this operation so it can scale and fail independently from storage.

Tradeoff: Promotion adds temporary downtime

Connected operations: Route write request; majority promotion; Validate current

Engineering control room

Deep dives — decisions, failures and recovery

Open a deep dive to follow the steps, try an example and see how recovery works.

Deep dive 1

Reject the previous regional writer

A grants a new ownership number and storage checks it on writes.

Read the explanation and worked example
How it works

A -backed authority grants ownership with an increasing . The protected resource remembers the highest accepted and rejects older owners, even if those processes still run. The must be checked at the actual state-changing boundary.

Walk through an example

Region A loses contact with coordination but still reaches storage. Region B receives a new . Without storage-side checks, both can continue writing despite an apparently correct election.

Failure and recovery

Stop minority writes and make old epochs permanently unable to mutate protected state. A lock-service alone cannot cancel an already paused process or revoke its network access.

Why this helps

A failed health check cannot prove the old writer is dead; it may still reach the database.

What you give up

Synchronous remote agreement adds latency. Asynchronous replicas may miss recent accepted writes, so safe promotion can require waiting or .

Deep dive 2

Recover the accepted history before reopening writes

Choose a safe recovered state, stop old-owner writes and preserve request identities.

Read the explanation and worked example
How it works

Promote from a data history known to meet the recovery promise, establish the new , fence the old writer and then route new commands. Client retry identities must survive the move so uncertain requests can be resolved against the promoted state.

Walk through an example

A response was lost just before the partition. Sending the same logical command to the new region with a fresh identity may repeat the business action.

Failure and recovery

Reconcile uncertain results and document any data loss allowed by asynchronous replication. If safety evidence is missing, delaying promotion may be the correct availability trade-off.

Why this helps

Changing a routing address does not resolve an in-flight command whose response was lost.

What you give up

The returning region must reconcile or rebuild before rejoining. Its cached and private updates are evidence to examine, not permission to resume writes.

Deep dive 3

What happens if a region fails?

Stop the returning old owner from resuming writes with an expired .

Read the explanation and worked example
How it works

When a partition heals, the returning region must rejoin under the current ownership and a reconciled data history. Its cached and local pending commands are not permission to resume writes.

Walk through an example

The old primary restarts with unreplicated updates and still believes it owns 7 while 8 is active.

Failure and recovery

Reject 7 at the protected resource, preserve its evidence for and reseed or merge according to the data model before rejoining.

Why this helps

The end of a network outage is not the end of the ownership recovery protocol.

What you give up

Strict single-authority safety pauses minority writes; accepting both sides would require a different conflict-resolution contract.

Deep dive 4

Retry identity and ambiguous commands

Ownership and duplicate-command protection solve different problems.

Read the explanation and worked example
How it works

The new region must recognize a logical command whose response was lost before the partition. Persist request identity with the business result and recover that history under the new owner. rejects stale writers, but it does not identify two client retries as the same action.

Walk through an example

A client submits a transfer, receives no response and resubmits after promotion. Both requests may be authorized under different valid epochs while still representing one intended transfer.

Failure and recovery

Resolve the existing command identity before applying another effect; pause uncertain operations if the recovered history is incomplete. Preserve evidence from the old region for .

Why this helps

One current writer does not automatically imply one business effect per client intent.

What you give up

Durable duplicate-result history adds state; accepting fresh identities during ambiguous recovery increases the risk of repeated actions.

Tradeoffs and alternatives

DecisionTradeoff / alternative and recovery implication
Reject the previous regional writerSynchronous remote agreement adds latency. Asynchronous replicas may miss recent accepted writes, so safe promotion can require waiting or .
Recover the accepted history before reopening writesThe returning region must reconcile or rebuild before rejoining. Its cached and private updates are evidence to examine, not permission to resume writes.
What happens if a region fails?Strict single-authority safety pauses minority writes; accepting both sides would require a different conflict-resolution contract.
Retry identity and ambiguous commandsDurable duplicate-result history adds state; accepting fresh identities during ambiguous recovery increases the risk of repeated actions.

Production scars & failure modes

Failure investigation

Both regions believe they should accept writes after a network split.

Look for: Watch reachability, expiry and epochs presented at storage.

Recovery and invariant: Let the minority stop writes; the surviving authority issues a higher and the protected resource rejects old owners even if they are still running.

Component / failureImpactRecovery mechanismAlternative / tradeoff
Primary failure / raceA region becomes unreachable, but its old writer may still be running. How does a second region safely take over?Promote only from a safe committed prefix, fence the old writer and route new requests to the authorized owner. The minority stops writes.Async replication has nonzero ; a health check cannot prove the old writer is dead. Zero-loss recovery may require WAN latency.
Recovery follow-upThe old region returns with unreplicated updates and a cached . Explain and rejoin.Promote only from a safe committed prefix, fence the old writer and route new requests to the authorized owner. The minority stops writes.State the guarantee you relax and how you detect recovery.

90-second interview summary

For a multi-region network partition, I would begin by choosing the safety contract. This design keeps one write authority, so the side that cannot establish valid ownership stops accepting protected writes instead of becoming an independent primary.

A -backed service grants an increasing ownership . The protected database or effect boundary remembers the highest allowed and rejects stale ones. A timeout at the coordinator alone is insufficient: an old process may pause, lose contact and later resume while still reaching storage.

Promotion recovers a safe committed history, establishes the new , fences the old writer and then changes routing. Client requests preserve their logical identity because one valid owner at a time does not prevent the same uncertain command from being retried across two successive owners.

When the partition heals, the old region rejoins through or reseeding. Its cached and unreplicated updates remain evidence to resolve, not permission to resume writes. I would monitor ownership changes, stale- rejection and uncertain command age. The tradeoff is reduced minority availability and possible promotion delay in exchange for avoiding split ownership; accepting writes on both sides would require a different conflict-resolution model.

Explain it without looking

Explain reject the previous regional writer

Reveal answer

A grants a new ownership number and storage checks it on writes.

A failed health check cannot prove the old writer is dead; it may still reach the database.

Synchronous remote agreement adds latency. Asynchronous replicas may miss recent accepted writes, so safe promotion can require waiting or .

Explain recover the accepted history before reopening writes

Reveal answer

Choose a safe recovered state, stop old-owner writes and preserve request identities.

Changing a routing address does not resolve an in-flight command whose response was lost.

The returning region must reconcile or rebuild before rejoining. Its cached and private updates are evidence to examine, not permission to resume writes.

Explain what happens if a region fails?

Reveal answer

Stop the returning old owner from resuming writes with an expired .

The end of a network outage is not the end of the ownership recovery protocol.

Strict single-authority safety pauses minority writes; accepting both sides would require a different conflict-resolution contract.

Explain retry identity and ambiguous commands

Reveal answer

Ownership and duplicate-command protection solve different problems.

One current writer does not automatically imply one business effect per client intent.

Durable duplicate-result history adds state; accepting fresh identities during ambiguous recovery increases the risk of repeated actions.

Revision checklist

Revision checklist

  • Reconstruct reject the previous regional writer: A grants a new ownership number and storage checks it on writes.
  • Reconstruct recover the accepted history before reopening writes: Choose a safe recovered state, stop old-owner writes and preserve request identities.
  • Reconstruct what happens if a region fails?: Stop the returning old owner from resuming writes with an expired .
  • Reconstruct retry identity and ambiguous commands: Ownership and duplicate-command protection solve different problems.
  • Name the authoritative state, boundary, retry identity and failure-domain durability guarantee.
  • Explain one alternative and exactly which guarantee you would relax.
  • Redraw the request and recovery paths without looking; mark what required a hint.

On this page
  1. Prompt
  2. Constraints
  3. Think first
  4. Staged reveal
  5. High-level design
  6. Problem statement
  7. Functional requirements
  8. Non-functional requirements
  9. Entities
  10. API design
  11. High-level design component walkthrough
  12. Engineering control room
  13. Deep dives — decisions, failures and recovery
  14. Tradeoffs and alternatives
  15. Production scars & failure modes
  16. 90-second interview summary
  17. Explain it without looking
  18. Revision checklist

Save & sync your Atlas progress

Sync your profile and topic progress across browsers, then return to the same study desk.

Google sign-in will appear here after its Azure provider is configured.

Architecture diagram