25 / 25 · Operations and recovery

Multi-region setup

A multi-region design runs required components in more than one geographic region. It can support regional recovery or lower user latency, but distant data coordination adds latency, consistency and operational trade-offs.

What you will practise

  • Separate read/write topology
  • preserve seat ownership
  • plan failover and failback

Before you start: Write owner, replication lag and network partition.

About 5 minutes · offline-generated English female narration · captions included. Diagrams are conceptual; timings are illustrative.

Download MP4Captions

Listen without the videoDownload audio

The same pre-recorded voice as the video. Starting audio pauses the video, and starting the video pauses audio.

Chapters and full transcript

Let us understand multi-region setup. A school keeps a working campus in another city. Classes can move after a local disaster, but both campuses must agree which student records are current. If both sell the last seat in the same bus independently, simply having two campuses creates a conflict instead of solving it. A multi-region design runs required components in more than one geographic region. It can support regional recovery or lower user latency, but distant data coordination adds latency, consistency and operational trade-offs.

Follow the normal path. Decide whether another region is for disaster recovery, nearby reads or active writes. Each operation can have different latency, availability and consistency requirements. Region A sends changes toward Region B. Asynchronous copying can lag; synchronous coordination adds waiting and depends on the communication path. SeatSpot might serve public catalog reads near users in two regions while keeping seat reservation ownership in one write region. Choosing active-active writes requires an explicit conflict/coordination strategy, not merely deploying the same containers twice.

Now change one condition. The regions cannot communicate. Allowing both to confirm the same last seat independently can violate correctness even though both applications are running. A common misunderstanding is this: Two regions automatically double availability with no trade-off. Distant coordination adds latency and failure choices; shared dependencies can still fail both. Think about this. Two disconnected regions each see the same last seat. Can both confirm it independently while preserving uniqueness? Pause the video and make your prediction. No. Use a clear owner or coordinated decision, or choose a product model that explicitly accepts and reconciles conflicts.

Let us reason with a concrete example. Two regions can both see one remaining seat while cross-region communication is interrupted. If both independently confirm the seat, availability was preserved but the uniqueness invariant was broken. Preventing that requires a single owner, coordinated decision or a product model that explicitly tolerates/reconciles conflict. Keep authoritative seat allocation under a clear ownership/consistency rule. Use regional catalog caches separately and test failover and failback with realistic lag. These figures are teaching examples, not production guarantees.

Turn the idea into a design decision. A safe failover establishes which writer owns new decisions and prevents the old writer from conflicting. Routing alone does not settle database ownership. Direct eligible traffic to the recovery region and validate the actual booking workflow. Its capacity, credentials and dependencies must work independently enough for the failure scenario. When you try the practice task, look for this result. A second region is useful only if required dependencies and recovery procedures survive the chosen regional failure.

Check your understanding. After recovery, reconcile lag and in-flight work before moving ownership back. Test both failover and failback instead of treating the first traffic switch as the whole plan. Here is a challenge. Both regions can independently book the last seat during a partition. What requirement is missing? Pause before the answer. There is no safe authoritative allocation/coordination rule for the uniqueness requirement. Define ownership, fencing and the partition policy; refuse or defer some writes if necessary rather than double-sell. For an interview, compare per-operation consistency, routing and recovery objectives. Say what you would measure, not only which tool you would buy.

Start with an everyday picture

A school keeps a working campus in another city. Classes can move after a local disaster, but both campuses must agree which student records are current. If both sell the last seat in the same bus independently, simply having two campuses creates a conflict instead of solving it.

Why SeatSpot needs this

SeatSpot might serve public catalog reads near users in two regions while keeping seat reservation ownership in one write region. Choosing active-active writes requires an explicit conflict/coordination strategy, not merely deploying the same containers twice.

Trace one step at a time

Move through the diagram at your pace. Teal paths are active; unavailable components are labelled.

Global usersTraffic routingRegion A writerRegion B standbyReplication link

Step 1 of 6 · Requirements before geography

Define the regional goal

Decide whether another region is for disaster recovery, nearby reads or active writes. Each operation can have different latency, availability and consistency requirements.

Read all six mechanism steps
  1. Define the regional goal

    Decide whether another region is for disaster recovery, nearby reads or active writes. Each operation can have different latency, availability and consistency requirements.

  2. Copy suitable state

    Region A sends changes toward Region B. Asynchronous copying can lag; synchronous coordination adds waiting and depends on the communication path.

  3. Lose the connection

    The regions cannot communicate. Allowing both to confirm the same last seat independently can violate correctness even though both applications are running.

  4. Fence and promote

    A safe failover establishes which writer owns new decisions and prevents the old writer from conflicting. Routing alone does not settle database ownership.

  5. Route and validate

    Direct eligible traffic to the recovery region and validate the actual booking workflow. Its capacity, credentials and dependencies must work independently enough for the failure scenario.

  6. Plan reconciliation and failback

    After recovery, reconcile lag and in-flight work before moving ownership back. Test both failover and failback instead of treating the first traffic switch as the whole plan.

Pause and make a prediction

Two disconnected regions each see the same last seat. Can both confirm it independently while preserving uniqueness?

Answer aloud or write your reasoning in the lesson notes before revealing the explanation.

Correct a common misunderstanding

Claim to question: Two regions automatically double availability with no trade-off.

Better explanation: Distant coordination adds latency and failure choices; shared dependencies can still fail both.

Compare regional booking designs

A paper or whiteboard task. No cloud account or paid infrastructure is required.

  1. Draw active-passive and active-active read paths.
  2. Mark the authoritative owner of each seat and simulate a partition.
  3. Explain promotion, fencing, lag and return to the original region.

Check what you can explain

This is your self-check, not an automated grade. Try again without the diagram tomorrow.

0 of 3 goals checked. Choose one remaining idea to practise next.

These checkboxes reset when you leave. Use your saved lesson notes and completion marker to record lasting progress.

Teach it back

Without looking, explain what this component changes, what it does not solve and what happens if it fails. Use the animation to check your explanation, then switch to Engineering.

Try it before viewing the solution

Both regions can independently book the last seat during a partition. What requirement is missing?

Check one key idea

During a network partition, confirming the same last seat independently in both regions can:

Your explanation and interview notes

Saved only in this browser when storage is available. Export a backup from the course page before clearing browser data or moving devices.

Loading your local notes…

Official references and next reading

The explanation, fictional examples and animations are original teaching material. Vendor behavior depends on the specific product/version; use its documentation before deploying.