Book a free call

Active-Active Multi-Region Disaster Recovery on AWS

Active-active disaster recovery on AWS runs your app live in two regions at once, so an outage shifts traffic instead of stopping service. Here is how it works.

Hertiv engineering teamReviewed by a senior engineer
8 min read
Active-Active Multi-Region Disaster Recovery on AWS
On this page

Short answer

Active-active multi-region disaster recovery on AWS means running the same application live in two or more AWS regions, with traffic split between them and data copied in both directions. If one region fails, the other keeps serving users without a restore step, because it was already running. The trade-off is higher cost and the need to keep data in sync.

What is active-active multi-region disaster recovery on AWS?

Active-active multi-region disaster recovery on AWS is a setup where the same application runs live in two or more AWS regions at the same time, and each region can serve users on its own. Traffic is shared between the regions, and data is copied between them, so no region sits idle waiting for a failure.

When one region has a problem, the healthy region takes the full load. Users see at most a brief delay rather than an outage, because the second copy was already running and already had the data it needed. The goal is not to restore a system after a failure, but to keep serving through it.

This is the strongest form of regional resilience on AWS, and also the most demanding. It costs more than keeping a standby copy, and it forces teams to solve data sync and traffic routing properly. It fits applications where even a short outage is expensive: checkout, payments, booking and other services that must stay up while people are using them.

How is active-active different from active-passive?

Active-active differs from active-passive in one way: in active-passive, the second region is a standby that only starts serving after a failure, while in active-active, both regions serve all the time. That single difference changes recovery speed, cost and testing.

ApproachHow it worksRecoveryCost and effort
Active-activeBoth regions live, traffic sharedMinutes, no restore stepHighest, data sync needed
Active-passiveOne region live, one on standbyMinutes to hours, needs a switchMedium, standby still runs
Pilot lightSmall standby, scaled up on failureTens of minutes to scaleLower, but slower
Backup and restoreBackups only, nothing runningHours, full rebuildLowest, slowest recovery

Active-passive is simpler to run because only one region writes data at a time, so there are no write conflicts to resolve. The trade is that the standby must be proven to work, and the switch itself can fail.

Teams that pick active-passive should test the switch often, or the standby becomes a guess rather than a plan. For the data side of the decision, cloud backup software covers how backups fit into the wider picture.

What does the architecture look like?

An active-active architecture on AWS has the same shape in each region: a load balancer in front of the application, the application itself, and a data layer that is copied between regions. A routing layer above the regions decides which region each user reaches.

Traffic usually enters through Route 53, which can send users to the nearest healthy region and stop sending traffic to a region that fails its health checks. Inside each region, an Application Load Balancer spreads requests across the application servers, which run on EC2, ECS or EKS. The application code is the same in both regions, deployed from the same pipeline, so a release reaches both places together.

The data layer is where the real work sits. DynamoDB Global Tables and Aurora Global Database copy data between regions, and S3 cross-region replication copies objects. Static content can sit behind CloudFront, which serves it from edge locations rather than from one region. Each of these services handles part of the copying, but the team still has to decide what the data means when both regions write at once.

How do you keep data in sync across regions?

Data sync is the hardest part of active-active design, because two live regions can both accept writes to the same record. The system has to decide which write wins, and what happens to the loser.

Most teams start by choosing which data can be written in both regions and which cannot. Orders, bookings and payments often need a single writer, so one region owns the write while the other serves reads, or each region owns its own slice of the data. Reference data, such as product catalogues and prices, is easier: it changes rarely and can be copied in one direction.

For data that both regions must write, the common answers are last-write-wins, version numbers, or merging at the field level. Last-write-wins is simple but can drop a change. Version numbers let the application spot a clash and ask the user or a process to fix it. Whatever the rule, it must be written down and tested with real conflicts, because a sync rule that only works when nothing clashes is not a rule.

Teams also set a recovery point objective: how much recent data they are willing to lose. Replication is usually fast, but it is not instant, so a failure can still lose the last few seconds of writes. That gap has to be acceptable to the business, and it should be measured during tests rather than assumed.

How do you route traffic and fail over?

Traffic routing is what turns two running regions into one service. Route 53 health checks watch an endpoint in each region, and when a region stops answering, Route 53 stops sending new users there. Existing users may need to reconnect, which is why the application should be stateless or keep session state in a shared store.

Routing can be weighted, so each region takes a share of traffic, or latency-based, so users go to the nearest healthy region. Weighted routing is useful for a controlled start: send a small share to the new region first, watch it, then raise the share. Latency-based routing is better once both regions are proven, because users reach the closest copy.

DNS changes are not instant. Cached records can keep sending some users to a failed region for a short time, so the time-to-live on the records should be short, and the application should handle a failed region gracefully rather than hanging. Health checks should test the real application, not just the load balancer, so a region with a broken database is treated as down even when its web server answers.

How do you build it, step by step?

You build an active-active setup on AWS in stages, proving each one before moving to the next. Skipping the proof step is how teams discover a broken failover during a real outage.

  1. Pick the scope. Choose one application and its data, and write down the recovery time and recovery point targets the business needs.
  2. Make the application stateless. Move sessions and uploads into shared stores, so any server in any region can serve any user.
  3. Stand up the second region. Deploy the same code, the same load balancer setup and the same monitoring, using the same templates as the first region.
  4. Turn on data replication. Copy the data layer between regions and check that writes appear in the other region, including under load.
  5. Add routing and health checks. Put Route 53 in front, with health checks that test the real application, and start with a small traffic share in the new region.
  6. Test a real failure. Shut off one region in a controlled test, watch traffic move, and check that no orders or records are lost. Repeat the test on a schedule.

Each step has a test that proves it works. If a step cannot be tested, it is not finished, and the next step should wait. A staged rollout is slower than a single big launch, but it is the only way to know the setup works before it is needed. Teams that want outside help with the rollout can look at DevOps services for pipeline and deployment support.

Example (hypothetical): a checkout service survives a region outage

Example (hypothetical): an online shop takes 12,000 orders a day, split evenly between two AWS regions, so each region handles 6,000 orders a day. Both regions are sized to handle the full 12,000 orders a day on their own, so neither is overloaded when the other fails.

One morning the first region stops answering. Route 53 health checks notice within a minute, and traffic moves to the second region over the next 4 minutes. During those 5 minutes, about 40 orders were in flight, because 12,000 orders a day is 500 an hour, or about 8 orders a minute, and 8 times 5 is 40.

Of those 40 orders, 32 complete when the shopper's browser retries, and 8 need a follow-up from support because the payment step did not finish. The shop still takes 11,992 of its 12,000 orders that day, and the 8 failed orders are visible in a queue rather than lost silently.

The lesson is in the numbers: the outage cost 8 orders, not 6,000, because the second region was already running and already had the data. The team then fixes the payment retry so the next failure costs fewer orders, and runs the same test again the following month.

What are the common mistakes?

The most common active-active mistakes are treating failover as automatic, forgetting that data can clash, and never testing the setup under real conditions.

  • Never testing failover. A failover plan that has never run is a guess. Test it on a schedule, and test it at full load.
  • One region writes everything. If only one region can write, the setup is active-passive in practice, and the second region cannot take over on its own.
  • Health checks that lie. Checking only the load balancer marks a region healthy when its database is down. Check the real application path.
  • Forgetting cross-region costs. Traffic and data copied between regions are billed, so a chatty design can cost more than the servers. For the wider picture, enterprise cloud data protection covers how data rules and costs fit together.
  • Different regions, different versions. Deploying to one region first and the other later leaves the regions out of step. Deploy to both from the same pipeline.
  • No runbook for the human side. Someone has to decide when to fail back, who tells customers, and what to check afterwards. Write it down before it is needed.

Key takeaways

  • Active-active means both regions serve traffic at once, so a failure shifts load instead of starting a restore
  • Data sync is the hard part: decide which data both regions may write and how clashes are resolved
  • Route 53 health checks should test the real application, not just the load balancer
  • Size each region for the full load, or the surviving region will overload when it takes over
  • Test failover on a schedule, including the fail-back, or the plan is only a guess

Frequently asked questions

What is the difference between active-active and active-passive?

In active-active, both regions serve traffic at the same time, so a failure shifts load to a region that is already running. In active-passive, the second region is a standby that only starts serving after a failure, which makes the switch slower and harder to trust without regular tests.

How much does active-active disaster recovery on AWS cost?

Costs vary with the number of regions, the size of the application and how much data is copied between regions, so no single figure is honest. You pay for a second live copy of the system plus cross-region traffic, and the design should keep that traffic small. Ask vendors for a priced proposal or see vendor site.

Which AWS services copy data between regions?

DynamoDB Global Tables and Aurora Global Database copy database data between regions, S3 cross-region replication copies objects, and CloudFront serves static content from edge locations. Each service covers one kind of data, so most setups combine several of them.

How fast can traffic move to the healthy region?

Route 53 health checks can notice a failed region within a minute or so, and new traffic then goes to the healthy region. Cached DNS records can keep some users pointed at the failed region for a short time, so a short time-to-live and a stateless application matter as much as the health check itself.

Do I need active-active for every application?

No. It fits applications where even a short outage is expensive, such as checkout, payments and booking. Internal tools and batch jobs often do fine with active-passive or backup and restore, which cost less and are simpler to run.

How do I test failover without breaking production?

Start by sending a small share of traffic to the second region and watching it, then run a controlled test where one region is shut off and traffic moves. Keep the test small at first, check that no orders or records are lost, and repeat it on a schedule.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Need a second region that can take over without a restore step? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Cloud Services service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call