Scrivio Interview library
ScenarioIntermediate6 min read · updated 13 November 2026

An e-commerce platform runs active-passive. The standby region keeps the full stack at 20 percent size, with databases fed by asynchronous replication. During a real outage of the primary region the team starts failover at 10:00; at 10:50 checkout is still failing in the standby.

What commonly makes a warm standby slow at the moment it is needed, and how would you make this failover reliably finish in under 15 minutes?

A warm standby is slow when needed because scaling from 20 to 100 percent competes with every other customer failing over, quotas and address ranges were sized for 20 percent, and JVM services need warm-up; data promotion waits on a human decision about replication lag; cold caches and empty pools make the first minutes slow; and configuration drift breaks things that exist only for the primary. We get under 15 minutes with pre-approved quotas and reserved capacity at a larger standing size, a scripted promotion with a pre-agreed loss rule, warm caches and a small share of real traffic, one pipeline for both regions with synthetic transactions, and timed rehearsals of the whole failover.

Why this question is asked

A warm standby is a reasonable choice for an e-commerce platform: a complete stack in a second region at 20 percent size, data replicated, ready to take over. On paper failover takes minutes. In this scenario, checkout is still failing 50 minutes in, which is the usual story when a standby is tested for the first time during a real outage. Interviewers ask this to see whether we know where failovers really lose time. In this answer, we will go through the four common causes, capacity, data promotion, cold state and configuration drift, and then see how rehearsal and automation turn the failover into a reliable 15-minute procedure.

1A Quick Recap of the Setup

The standby region runs the full stack at 20 percent of production size, with databases fed by asynchronous replication, which means the standby receives changes a little after the primary commits them, usually seconds behind. Failover requires three things: promote the standby databases so they accept writes, scale the stack from 20 to 100 percent, and move traffic.

Each of those steps is fast in a test with quiet conditions. During a real regional outage, conditions are not quiet, and every hidden dependency shows up at once. Let us take the causes one at a time.

Step throughWhere the 50 minutes went
  1. 10:00 start failoverdecision taken
  2. Scale 20% -> 100%launches throttled, quota too low, JVMs cold
  3. Promote databaseswaiting for approval on replication lag
  4. Move trafficcaches empty, pools opening
  5. Checkout still failing at 10:50payment provider allowlist and secrets missing

5 steps in order. Play them, or step through them one at a time.

2Cause 1: Capacity That Is Not There Yet

Scaling from 20 to 100 percent means launching four times as many instances as are running. During a regional outage, many other customers are launching in the same standby region, so launch requests are throttled and some instance types run out. Account quotas, such as the maximum number of instances or vCPUs, and IP address ranges in subnets were often sized for the 20 percent stack, so launches fail outright. Finally, JVM services need warm-up time: class loading, JIT compilation and connection setup can make a new instance slow for its first minute or two.

The fixes are mostly preparation. Quotas and subnets are pre-approved at full production size. Reserved or committed capacity in the standby region guarantees that instances can be launched. And a larger standing size, say 40 or 50 percent, means a smaller jump; combined with load shedding, a 50 percent stack can serve the most important traffic while the rest scales.

3Cause 2: Waiting for a Decision on Data

Asynchronous replication means the standby is a little behind. Promoting it accepts that the last few seconds of writes in the primary may be lost. In the moment, someone has to decide whether that is acceptable, find the right person to approve it, and then run commands that may never have been run in production. This alone often takes 15 to 30 minutes.

So we decide in advance. The rule is agreed with the business before any outage: if the primary region is down for more than N minutes and the replication lag is within the RPO, promote without further approval. The promotion itself is a script that checks the lag, promotes each database, records the last applied position for later reconciliation, and updates the connection endpoints.

Shell
$ failover promote --region standby --max-lag 60s
orders-db: lag 4s -> promoted, last LSN 3A/7F21C8 # recorded for reconciliation
payments-db: lag 6s -> promoted, last LSN 12/0B9D40
inventory-db: lag 3s -> promoted
endpoints switched; within RPO of 60 s, no approval needed (pre-agreed rule)

4Cause 3: Cold Caches and Empty Pools

Even with capacity and data in place, the first minutes are slow. The standby's caches, such as Redis holding sessions, product data and prices, are empty or hold only what the small standby traffic touched. Every request misses the cache and goes to the database, which now receives far more queries than it normally sees. Connection pools start empty and open connections under load. The result is a burst of timeouts right after traffic moves.

We can warm critical caches from replicated data before or during failover, for example by loading the most popular products and prices. Even better, the standby serves a small share of real reads all the time, perhaps 5 percent of production traffic, so its caches and pools are always warm and its code paths are exercised.

5Cause 4: Configuration Drift

The most frustrating failures come from configuration that exists only for the primary: an endpoint URL hard-coded to the primary region, a secret created by hand and never copied, a feature flag set only in one region, or a third-party allowlist, such as the payment provider's list of permitted IP addresses, that contains only the primary's egress addresses. This is likely why checkout specifically was still failing.

The fix is to treat both regions as one deployment. The same pipeline deploys code and configuration to both, secrets are replicated, third-party allowlists include both regions' addresses, and synthetic transactions, scripted test orders through the full checkout flow, run against the standby every few minutes. A failed synthetic checkout in the standby is then an alert on a normal Tuesday, not a discovery during an outage.

6Rehearse It With a Timer

All of these fixes only hold if the failover is practised. We rehearse the full failover regularly, including real traffic switching, and time every step against a plan: promotion 3 minutes, scale-up 5, traffic move 5, verification 2. Any step slower than planned is treated as a defect with an owner, not as a lesson to remember.

Automation per step plus regular drills is what brings the failover under 15 minutes. The runbook becomes a sequence of scripted commands with checks between them, and the people running it have done it recently.

7Follow-up questions

How would you run a small but real share of production traffic in the standby every day?

Use weighted routing at the global load balancer or DNS to send, say, 5 percent of users to the standby region, chosen by a stable key so each user stays in one region. Reads are served locally. Writes either go to the primary region's databases across the region link, which adds latency for those users, or the share is limited to read-heavy journeys like browsing. Either way, the standby's caches, pools, configuration and code paths are exercised by real customers every day, and any drift shows up as errors in its own dashboards.

Is a larger standing size worth the cost?

Usually yes for the most critical services. Going from 20 to 50 percent costs more every month but removes most of the scale-up risk, and the standby can then carry the critical journeys with load shedding even before scaling completes.

Who presses the failover button?

The rule agreed in advance says who and when, so the on-call incident commander can act without escalation when the conditions are met.

8Conclusion

In this answer, we saw that warm standby failovers lose time in four places: capacity that cannot launch fast enough, a promotion decision nobody pre-agreed, cold caches and empty pools, and configuration that exists only in the primary. Pre-approved quotas, reserved capacity, a scripted promotion with a loss rule, warm caches, one pipeline with synthetic transactions, and timed drills bring the failover under 15 minutes.

What to say in the interviewAbout 90 seconds aloud

Open with

A warm standby is usually slow at the worst moment for four reasons. First, capacity: going from 20 to 100 percent means launching four times as many instances while every other customer is failing over too, so launches get throttled, and quotas and subnet address ranges were often sized for 20 percent; JVM services also need warm-up.

Then, if they want more

I would pre-approve quotas at full size, buy reserved capacity in the standby region and consider a larger standing size like 50 percent. Second, data: promoting asynchronously replicated databases means accepting some lost writes, and teams wait for someone to approve that. I would pre-agree the rule, promote if lag is within the RPO, and script the promotion.

Third, cold state: empty caches and connection pools send a burst of load to the databases in the first minutes, so I would warm critical caches or, better, have the standby serve a small share of real reads all the time.

Fourth, configuration drift: endpoints, secrets, feature flags and third-party allowlists that exist only for the primary, which is probably why checkout failed. Both regions should deploy from one pipeline, and synthetic checkouts should run against the standby every few minutes.

Finally, I would rehearse the whole failover with a timer and treat any step slower than planned as a defect, because automation plus regular drills is what gets it under 15 minutes.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "What commonly makes a warm standby slow at the moment it is needed, and how would you...": https://scrivio-interview-library.netlify.app/architecture/high-availability/d898c2f341/