AlgoViz

What can a disconnected region promise?

medium 6 min

Three regions replicate a directory of active deployment versions.

Video lesson · Chapter 1 of 5

A link splits two regions

0:00 / 4:02

Two regions lose contact. Who can still answer?

1:19Reel

Theory

Read or listen first. About 1 min.

What it is

A deployment dashboard asks which version a region last observed. A rollout controller asks whether it can safely start the next phase. Both requests read the same version number, but the controller needs confidence that a newer committed decision has not superseded it. Giving every read the same endpoint hides this difference.

What can a disconnected region promise?

West · isolatedEast · quorum×Read v41Latest · v42The read succeeds with an older value.
The isolated region serves its last replicated value, revision 41. The dashboard stays available and labels the data’s age.

Why it exists

A partition means messages stop crossing a boundary while machines on both sides may still be working. A process observing silence cannot immediately distinguish a slow peer from a failed one. The protocol has to define which operations may complete with that uncertainty.

View diagram · Read contracts
Operator → Leader A (rollout check); Leader A → Voter B (replicate); Local dashboard → Isolated C (local view)
Expose freshness and use an authoritative path for rollout decisions.
Full size

Words to know

Linearizability
Each completed operation appears to take effect at one instant between invocation and response, respecting real-time order.
Partition
A communication failure that prevents some participating nodes from exchanging messages.

How it works

Step through the idea, or press Play.

Step 1 of 3

Define the read contract. A linearizable read must reflect a write that completed before the read began. A stale local read can serve a dashboard quickly, but may return an old deployment version.

Understand it

Start here

Three regional deployment boards

Three regional control rooms display the deployed version. Imagine cutting the connection to room C. Its screen still lights up. The question is what that screen can tell an operator.

Three regional deployment boards
A rollout across three regionsRegion Arevision 11Region Brevision 11Region Crevision 11Three voters have revision 11

Fast reads can include a revision and age.

Structure

Read contracts

Read contracts

Operator → Leader A (rollout check); Leader A → Voter B (replicate); Local dashboard → Isolated C (local view)
Expose freshness and use an authoritative path for rollout decisions.

A deployment split

Commit version 12 on A and B while C is isolated at 11. A local dashboard read at C may say 11. An operator deciding whether a rollout finished must use the stronger read path or receive an unavailable response. Document which endpoint offers which contract.

Two paths for a version read

One directory, two read contracts

EndpointDuring isolationCost
Local dashboardShows version 11 and its observation timeA user may see stale progress
Rollout controllerObtains an authoritative read or waits or failsCannot always proceed locally
Majority write pathConnected voters may commit version 12Requires coordination

What the majority establishes

Any two majorities of three voters share a voter. Consensus protocols combine that overlap with rules for voting, terms and log freshness to preserve committed history. Merely gathering two arbitrary replies does not implement those rules. A disconnected former leader can still have an old log and a confident view of its role.

When connectivity returns

Followers must catch up before local status reflects the new version. Label stale-tolerant reads with a revision or observation time so operators can distinguish delayed reporting from an actual rollback. Test an isolated region that stays healthy enough to answer HTTP requests throughout the outage.

Local status

  • Fast reads can include a revision and age.

Use local status to approve rollout

  • A stale revision can trigger the wrong action.

Votes needed with three members

⌊3/2⌋+1=2\lfloor 3/2 \rfloor + 1 = 2
A single isolated voter cannot form a majority.

Summary

The whole topic in one minute.

Write down the freshness and availability contract per operation. A local status view and a rollout decision can legitimately behave differently during the same partition.

Sources