- Learn
- Computer Science & IT
- Information Technology
- Cloud Architecture and Administration
- Designing Resilient Architectures
Designing Resilient Architectures
IntermediateLesson 5 of 8 in Cloud Architecture and Administration Course
What you will learn
- Explain what makes a cloud workload resilient, find the weak points in a design and turn business needs into availability targets you can calculate and compare.
- Explain high availability, fault tolerance and resilienceTell apart the main resilience terms, find single points of failure and use redundancy and fault isolation to limit what a failure can break.
- Calculate availability and choose targetsExpress availability as a percentage and as allowed downtime, combine the availability of chained and redundant components, and estimate availability from failure and repair times.
- Explain high availability, fault tolerance and resilience
- Use regions and availability zones to spread every tier of a workload, so that the loss of a server, a data center or a whole zone does not stop it.
- Use regions, availability zones and fault boundariesDescribe how cloud providers organize regions and zones, compare zonal, zone-redundant and global resources, and decide where to place a workload.
- Build a multi-zone compute tierRun stateless servers or containers in several zones behind a load balancer with health checks, size them so a zone loss is absorbed, and replace failed parts automatically.
- Keep data available across zonesChoose replication, standby and storage options that keep databases, files and objects available when a zone fails, and know what each option does and does not protect.
- Use regions, availability zones and fault boundaries
- Replace fragile direct calls with queues, topics and events so that components can fail, slow down or scale on their own, and make every call safe to retry.
- Decouple components with message queuesExplain tight and loose coupling and use a queue to buffer work, absorb load spikes and survive consumer failures.
- Design publish/subscribe and event-driven architecturesFan out events to several independent consumers with topics and event buses, choose between queues, topics, event buses and streams, and coordinate multi-step workflows.
- Make calls safe under partial failureUse timeouts, retries with backoff and jitter, idempotency, circuit breakers, throttling and graceful degradation so that one failing dependency does not take down the whole system.
- Decouple components with message queues
- Set recovery objectives from business impact, compare the four standard disaster recovery strategies, and design the replication and traffic failover that let a workload recover in another region.
- Set recovery time and recovery point objectivesDefine RTO and RPO, derive them from a business impact analysis and see how they drive design and cost.
- Compare the four disaster recovery strategiesDescribe backup and restore, pilot light, warm standby and multi-site active/active, including what runs in the recovery region, typical recovery times and relative cost.
- Replicate data and fail over traffic between regionsDesign cross-region data replication and traffic routing, plan failover and failback, and avoid recovery steps that depend on services that may be impaired.
- Choose and justify a disaster recovery designMatch a workload's RTO, RPO, budget and constraints to the cheapest strategy that meets them, and justify the choice with numbers.
- Set recovery time and recovery point objectives
- Design backups that meet the recovery point objective and survive deletion and attacks, then prove with restore tests and failover drills that recovery works within the targets.
- Design backup and restoreChoose backup types, frequency, retention, location and protection so that data can be restored to the right point in time within the recovery targets.
- Test restores and failoverPlan and run restore tests, failover drills and game days, measure actual recovery times against RTO and RPO, and improve the design and runbooks from the results.
- Design backup and restore
Designing Resilient Architectures study guide
1Resilience requirements and availability
Cloud failures become business failures when a request loses a component it needs. Start by deciding what must remain usable, which disruptions the design should absorb, and how much interruption is acceptable. Availability calculations help compare designs, but their value depends on the failure boundaries and dependencies behind the numbers. The same review also separates live service from the survival and recovery of its data.
1.1 Resilience starts with the whole request path
A workload is the code and components that deliver a business function, such as checkout. Resilience is its ability to keep doing that job through failures and recover after disruption. Hardware faults are only one cause: software bugs, overload, mistakes, and loss of a data center matter too.
Availability, fault tolerance, and recovery
| Property | What it means | Example |
|---|---|---|
| High availability | Interruptions are rare and brief | A standby database takes over in one to two minutes |
| Fault tolerance | A covered failure causes no interruption users notice | Running spare capacity absorbs failure and interrupted requests are retried safely |
| Disaster recovery | The workload is restored after a disruption its HA design cannot absorb | Restore clean data after widespread corruption |
Fault tolerance generally needs more running spare capacity and costs more. Six web servers across three zones may have enough capacity after losing two servers, yet requests on those servers can still fail. Safe, transparent retries are needed before calling that behavior fault tolerant. A backup is a point-in-time data copy used in recovery; a DR plan also needs infrastructure, access, decisions, and tested steps.
Find what can stop the workload
Trace a request from the user through DNS, networking, the load balancer, application, cache, and database. Ask at each step, "What happens if this fails?" A single point of failure, or SPOF, stops the workload when it fails. One database is obvious; a lone NAT gateway, VPN tunnel, expiring certificate, or recovery procedure known by only one person can be just as important.
Redundancy provides another component that can do the job. If peak demand needs N units, N+1 supplies one spare; N+2 supplies two. The second spare can cover two failures or a failure during maintenance. Check the capacity after failure, not just the number of copies.
Two copies can share a cause of failure. Servers on the same power feed may fail together, and the same bad configuration can break every zone. This is correlated failure. Fault isolation limits the blast radius: the set of resources a failure can affect. Separate hosts, zones, regions, and accounts provide different boundaries. Choose boundaries that separate the failures you need to survive.
Protect both access and data
Availability asks whether data or a service can be used now. Durability asks whether stored data survives without loss or corruption over time. Storage designed for eleven nines of durability can still be temporarily unreachable. A service that answers every request can still faithfully serve a mistaken deletion.
Cloud resilience is shared work. Providers maintain the data centers, hardware, and underlying network. Customers choose deployment across zones, replication, backups, capacity, recovery tests, and failure handling in code. A virtual machine and its attached disk usually occupy one zone. Managed object storage may spread copies automatically. Inspect each service's deployment model; the provider's resilient infrastructure does not remove a workload's SPOFs.
Key Takeaways
- HA allows brief interruptions; fault tolerance hides the covered failure from users.
- Trace the business request path to find single points of failure, including access and people.
- Redundant copies need enough capacity and separate failure boundaries.
- Availability, durability, and recoverability answer different questions.
- The customer must configure and test resilience within the cloud.
1.2 Availability targets and calculations
An availability target needs a function and a measurement period. A shop with working pages but broken checkout is unavailable for ordering. Measure the agreed business outcome, using available time divided by total time, or successful requests divided by valid requests.
Turn a percentage into downtime
Write availability A as a fraction before calculating:
A 30-day month contains 43,200 minutes. At 99.95%, the unavailable fraction is 0.0005, so the budget is 21.6 minutes, or 21 minutes 36 seconds. At 99.9%, it is 43 minutes 12 seconds. Each extra nine divides the permitted downtime by ten.
| Availability | Allowed downtime in a 365-day year |
|---|---|
| 99% | 3 days 15 h 36 min |
| 99.9% | 8 h 45 min 36 s |
| 99.95% | 4 h 22 min 48 s |
| 99.99% | About 52 min 34 s |
| 99.999% | About 5 min 15 s |
Count planned maintenance when users need the service during it. A high percentage can conceal a long outage if the period is not stated.
Combine dependencies
For serial dependencies, every component must work. Under an independent-failure model, multiply availability fractions:
A load balancer at 99.99%, server at 99.9%, and database at 99.95% give 0.9999 × 0.999 × 0.9995 ≈ 0.99840, or 99.84%. Taking the average or just the weakest figure overstates this model's result.
For two independent redundant components, each able to carry the job, both must fail to stop service:
Two 99% servers give 99.99%. Put that pair into the path with the same load balancer and database: 0.9999 × 0.9999 × 0.9995 ≈ 99.93%. The database now offers the largest unavailability to remove. Two 99.9% servers alone give 99.9999% under the same ideal model.
These calculations assume independent failures and instant failover. Shared DNS, shared identity, a faulty release, or a delay in switching reduce actual availability. Treat the result as an optimistic design estimate, then test the real request path.
Improve recovery and choose a useful target
When failure and recovery averages are known:
MTBF is mean time between failures; MTTR is mean time to recover. With 1,000 hours and 2 hours, availability is about 99.80%, roughly 17.5 hours down per year. Reducing recovery to 0.5 hours gives about 99.95%. Automatic detection and recovery can be cheaper than trying to eliminate every failure.
Choose targets from business impact. More nines require more capacity, automation, testing, and change discipline. A provider SLA is a contract, often backed by service credits, not a promise that failure cannot happen. Check all hard dependencies before promising a stronger workload target. Measure successful business transactions, errors, and response times; distributed tracing follows requests through dependencies to locate the failing part.
Key Takeaways
- Always state the business function and the period for an availability target.
- Downtime equals the unavailable fraction multiplied by the period.
- Multiply serial availability fractions; redundant pairs fail only when both copies fail.
- Independence and instant switching are idealizations, so verify the complete design.
- Reducing MTTR can improve availability without increasing MTBF.
- An SLA offers contractual remedies; business outcome measurements show actual service.
2Design across availability zones
A multi-zone design has to spread more than web servers. Routing, user sessions, spare compute capacity, databases, caches, and storage all affect what happens when a location disappears. Placement gives copies separate failure boundaries; health checks and failover decide which copies serve requests. The design must also preserve enough working capacity while failed resources are being replaced.
2.1 Place resources across failure boundaries
Placement decides which failures redundant copies share. A region is a geographic area containing data centers. An availability zone is one or more separate data centers within a region, with independent power, cooling, and networking. Zones connect over fast links, making them useful partners for synchronous replication.
Scope does not tell you redundancy
| Resource scope or placement | Meaning | Resilience check |
|---|---|---|
| Zonal | Located in one zone | Deploy a copy elsewhere for zone loss |
| Regional | Belongs to one region | Check whether it actually spans zones |
| Zone-redundant | Copies span zones within a region | Check remaining capacity and failover behavior |
| Global | Service spans regions | Check its back ends and data placement too |
An Amazon EC2 instance and an EBS volume are zonal. S3 Standard, Azure zone-redundant storage (ZRS), and Amazon SQS spread data across zones. DNS and global front doors, such as Azure Front Door and Google's global external Application Load Balancer, can route across regions. A regional label alone promises no zone resilience: Azure can place a nonzonal regional resource without protection from zone loss.
Choose the right distance
Zones balance separation with short network delay. AWS places zones up to about 100 km apart; Azure aims for interzone round-trip latency below about 2 ms. Regions offering zones usually have at least three, although some Azure regions have none. Nearby zones support synchronous writes; replication between more distant regions is usually asynchronous so that each write does not wait for a long round trip.
Start with a primary region that meets user latency, data residency, compliance, service availability, and price requirements. Spread production across at least two zones, preferably three. Three zones reduce the spare capacity needed to survive one zone loss. Add another region when disaster recovery targets, required geographic separation, or global user latency justify it. Verify that the second region is permitted to hold the data.
Multi-zone deployment keeps its regional copies in one region. It handles a zone failure, but a regional outage can affect every copy. A bad release or deletion can also cross all zones through normal deployment or replication. Protected backup history and regional DR address different hazards from zone separation.
Provider details that affect placement
An Azure availability set separates virtual machines across fault domains, such as racks and power supplies, and update domains, which receive maintenance at different times. It protects against local hardware and maintenance failures within a data center. Zone deployment protects against a larger location failure. Virtual Machine Scale Sets can span zones.
Some Azure regions have a paired region in the same geography. Geo-redundant storage can use that pair; planned updates are staggered, and one region in each pair receives recovery priority during a broad outage. Many newer regions are unpaired. Pairing does not deploy your application or fail it over for you.
Logical zone names also need care. AWS can map a name such as us-east-1a to different physical zones in different accounts; zone IDs identify the same physical location across accounts. Azure logical zones map to physical zones per subscription. Compare physical mappings when coordinating placement across accounts or subscriptions.
Key Takeaways
- Check redundancy separately from zonal, regional, or global scope.
- Use zones for nearby fault isolation and regions for larger geographic separation.
- Region selection must satisfy latency, data location, service, and price needs.
- Availability sets and region pairs do not replace multi-zone deployment or a DR plan.
2.2 Keep compute serving after a zone fails
A resilient compute tier combines healthy traffic routing, replaceable instances, and capacity already available outside the failed zone. The usual path is a multi-zone load balancer, a group of instances spread across zones, and a separately resilient data tier.
Route to healthy instances
An AWS Auto Scaling group, Azure Virtual Machine Scale Set, or Google Cloud regional managed instance group maintains instances across zones and replaces unhealthy ones. The load balancer probes each target, for example at /health every 10 seconds. Consecutive failure and success thresholds determine when a target leaves or rejoins routing.
A shallow health check tests whether the process responds. A deep check also tests dependencies. If a shared database fails, a deep check can mark every otherwise working application instance unhealthy. Some load balancers, including AWS's Application Load Balancer, fail open when all targets are unhealthy and send traffic to them all. Use routing checks suited to the instance's own health, with separate monitoring for shared dependencies.
Make any instance able to serve the user
A stateless instance holds no unique user state between requests. Put sessions in a shared store or a signed client-held token. After a failure, another instance can continue the session. Sticky sessions only keep a user routed to one instance; they do not copy its memory. If that instance alone holds the session, losing it loses the session.
Size surviving zones before the outage
Static stability means the workload survives without launching or changing resources during the failure. If peak demand needs N instances and you use Z equal-sized zones, each zone needs:
Round up when the result is not a whole number. Peak load needing 6 instances requires 3 per zone across 3 zones: 9 total. Losing one leaves 6. Two zones need 6 each, or 12 total; four need 2 each, or 8 total. More zones reduce spare capacity for this one-zone-loss requirement.
Automatic scaling can restore headroom later. Depending on it for immediate survival is risky when the remaining zones have limited spare capacity or the provider's management systems are impaired. Check regional quotas in advance, including vCPU limits for the chosen instance family and quotas in recovery regions.
Replace and remove instances safely
With immutable infrastructure, build a new machine or container image for each change and replace instances. This limits configuration drift and makes rollback a deployment of the earlier image. Infrastructure as code supplies the reproducible environment. Avoid changing individual instances by hand, which makes their behavior diverge.
During scale-in or replacement, connection draining stops new requests and gives existing ones a bounded time to finish. AWS calls this a deregistration delay. It prevents routine removals from cutting off work in progress.
Older applications still benefit from automatic restart, recovery, backups, managed multi-zone databases, and a database proxy. Run multiple copies behind a load balancer when the application supports it. Managed compute also needs inspection: Lambda and Cloud Run distribute execution across zones, while some Azure Functions and App Service plans require zone redundancy to be enabled.
Key Takeaways
- Health checks control routing; replacement groups restore the intended instance count.
- Shared sessions or client-held tokens let surviving instances continue user sessions.
- Provision N ÷ (Z − 1) instances per zone, rounded up, for equal-sized one-zone-loss capacity.
- Immutable images make replacement and rollback repeatable.
- Connection draining protects requests during planned removal.
- Check quotas and the zone behavior of managed services before relying on them.
2.3 Keep the data tier available
A web tier can survive a zone failure while its database or cache stops the workload. Trace where each kind of state lives, how it is copied, and what the application must do when the active copy changes.
Replication controls confirmed-write loss
| Copy method | When a write is confirmed | Effect at failover |
|---|---|---|
| Synchronous | After the primary and replica store it | Confirmed writes survive loss of the primary |
| Asynchronous | After the primary stores it | Recent confirmed writes may be missing from the replica |
The delay behind the primary is replication lag. Synchronous replication adds a round trip to writes and suits nearby zones. Asynchronous replication is usual across regions, where waiting for every write would add more delay.
A multi-zone database maintains a standby in another zone. RDS Multi-AZ DB instances, zone-redundant Azure SQL Database, and Cloud SQL HA provide this pattern. On failure, the service promotes a standby and updates the endpoint. RDS Multi-AZ failover commonly takes one to two minutes; its single standby does not serve reads.
Many read replicas instead provide asynchronous read scaling and need manual promotion. They can support DR, but do not imply automatic lossless failover. Aurora differs: readers share cluster storage, generally lag well under 100 ms, and can be promoted automatically. Inspect the engine and deployment type.
Applications need to reconnect after dropped connections, retry transactions only when safe, and respect the database DNS TTL. A database proxy or pooler can reduce connection disruption. A resilient endpoint name does not make existing connections immune to failure.
Match storage to the failure boundary
S3 Standard, Azure ZRS, and Google Cloud regional buckets distribute object data across zones. S3 One Zone-IA and Azure LRS keep copies within one zone or data center, so location loss can remove access or destroy data. Use single-location storage for data that can be recreated.
Block disks such as EBS are normally zonal. EBS snapshots are regional recovery points that can create a volume in another zone; a snapshot is not an already running replacement disk. Regional file services, such as EFS Standard, Azure Files with ZRS, and Filestore's regional tier, offer file redundancy across zones. DynamoDB spreads tables across zones automatically; other NoSQL services may need an explicit setting.
Follow the failure through a shop
A shop has 9 web instances, 3 in each of 3 zones, with a peak need of 6. It uses a multi-zone load balancer, an RDS Multi-AZ database, a cache replica in another zone, and S3 Standard images. Losing the zone with the database primary leaves 6 web instances. Database writes pause during promotion, the application reconnects and retries safely, the cache replica takes over, and object storage continues serving. This is HA with a short write interruption.
A cache is also a capacity dependency. If every request suddenly misses the cache, the database may overload. Add cross-zone cache replicas and automatic failover, and limit request rates while a cold cache refills.
Replication does not supply protected history. A dropped table or bad update can reach every database copy. Object deletion behavior varies by service and settings: S3 does not replicate permanent deletion of a specific version, and delete-marker replication is optional. Keep separate point-in-time backups for recovery before damage.
Key Takeaways
- Synchronous copies protect confirmed writes; asynchronous copies can lose data up to their lag.
- A read replica and an HA standby can have different promotion and read behavior.
- Applications must reconnect and handle interrupted transactions safely.
- Check the zone scope of object, block, file, and cache storage.
- Plan for the database load caused by a cold cache.
- Replication supports availability; protected backups supply recovery history.
3Independent services and safe calls
A slow downstream service can hold up every caller that waits for it. Queues and events let components accept work independently, while timeouts and isolation limit the damage from calls that still need an immediate response. Asynchronous work brings its own design questions: who receives each message, how duplicates are handled, how long work may wait, and how users learn whether processing has finished.
3.1 Buffer work with durable queues
A direct call makes the caller wait for the receiver. If the receiver is slow or unavailable, that failure can spread back through the calling services. A message queue inserts a durable buffer so producers can submit work and consumers can process it later.
Separate acceptance from completion
The queue acknowledges that it stored a message. It does not say the business work has finished. An order screen can show "Order received; processing is underway." A password check or a price needed immediately still calls for a synchronous response with timeouts and redundant targets.
SQS, Azure Queue Storage, Azure Service Bus queues, and RabbitMQ are queue examples; a Google Pub/Sub pull subscription can play this role. Queues retain work while consumers fail, absorb arrival spikes, allow consumer scaling independent of producers, and support retries without resending from the producer.
Calculate backlog and useful capacity
Orders arrive at 600 per minute for 10 minutes while consumers complete 200 per minute. The queue grows by 400 per minute, reaching 4,000 messages. Arrivals then drop to 100 per minute. Consumers now clear only 100 waiting messages per minute after handling new arrivals, so the backlog takes 40 minutes to drain.
For scaling, use backlog per instance. If an instance processes 10 messages per second and acceptable waiting time is 30 seconds, it can have 300 messages waiting. A backlog of 4,500 needs 15 instances. CPU alone may not reveal waiting work, especially when processing waits on an external service.
Receive, process, and acknowledge safely
In SQS, receiving hides a message for its visibility timeout; it does not delete it. Delete only after successful processing. If a consumer crashes, the message becomes visible again and another consumer can retry. The default timeout is 30 seconds and the maximum is 12 hours. Set it above normal processing time or extend it during longer work. Otherwise another worker can receive the message while the first still processes it.
Most queue designs offer at-least-once delivery. Standard SQS can duplicate and reorder messages. FIFO queues preserve order within a message group; SQS FIFO deduplicates sends within a five-minute interval. FIFO has different throughput limits, and it does not remove the need for idempotent business handling after failures.
Keep failures and large payloads manageable
A dead-letter queue, or DLQ, collects messages that exceed a retry count. SQS uses maxReceiveCount. Choose enough attempts to survive brief failures, often 3 to 5, and alarm on DLQ arrivals. Fix the cause before redriving messages. A poison message that can never succeed should not consume workers forever. Standard SQS messages retain their original enqueue time in the DLQ, so its retention should be longer than the source queue's.
Retention limits how long work can wait. SQS keeps messages for 4 days by default, up to 14 days. Capacity must clear work within that window. Its message size limit is 1 MiB; the claim-check pattern stores a larger payload in object storage and queues a reference. Keep that referenced object available until processing and retries have finished.
Key Takeaways
- A queue confirms durable acceptance; business completion happens later.
- Backlog grows by arrivals minus completions and drains only by surplus processing capacity.
- Scale on backlog per instance and acceptable waiting time.
- Visibility hides work temporarily; successful processing must be followed by deletion.
- Use idempotent handlers, bounded retries, and a DLQ for poison messages.
- Retention and payload limits remain constraints on a buffered design.
3.2 Send events to independent consumers
Some work needs one worker; other work needs several services to react independently. Publish/subscribe lets a publisher send a message to a topic, and each subscription receives its own copy. The publisher does not need to know the subscribers, so another consumer can be added without changing it.
Pick the right message model
An event records a fact that happened, such as "OrderPlaced". A command asks a receiver to act, such as "ChargeCard". Event-driven services react to facts. Keep that distinction clear: announcing an event does not prove that every downstream action succeeded.
| Pattern | Main behavior | Useful purpose |
|---|---|---|
| Queue | Workers compete for work; successful work is deleted | Distribute tasks |
| Topic or event bus | Subscribers receive notifications; rules can select targets | Trigger independent reactions |
| Stream | Consumers retain separate reading positions in a retained log | Replay high-volume ordered records |
Amazon SNS, Google Pub/Sub, Azure Service Bus topics, and Event Grid support pub/sub patterns. EventBridge and Event Grid route events by content rules. A router can send only high-value orders to an extra review service. EventBridge can archive and replay events to help repaired consumers catch up.
Give each subscriber its own buffer
In fan-out, a topic feeds one queue per consumer. An "OrderPlaced" event can reach separate payment, inventory, email, and analytics queues. If email is down for 2 hours, its queue grows while the others continue. Each service gets its own retry settings and DLQ. Several workers on one shared queue would divide the messages, so they would not each receive every order.
A push subscriber without a durable buffer depends on the topic's delivery retries and any subscription DLQ. Once retries are exhausted, delivery can be lost. Independent queues make waiting work and recovery visible.
A stream, such as Kafka, Kinesis, or Event Hubs, retains records and lets consumers reread them. Ordering belongs to a partition or shard, not automatically to the entire stream. Consumers can process the same history at different speeds.
Coordinate a business process
With choreography, services react to each other's events without a central controller. This is loosely coupled, but following the whole process is harder. With orchestration, Step Functions, Durable Functions, or Cloud Workflows controls the steps, retries, timeouts, and error paths. A failed shipping step may trigger a compensating refund. Orchestration helps when progress and failure handling must be explicit.
An API gateway supplies a front door for routing, authentication, caching, and throttling. Excess traffic can receive HTTP 429. An API that queues work can return HTTP 202 Accepted and expose later status; it must not imply completion.
Independent microservices own their data and scale separately. Their views may be eventually consistent: inventory can update after the order is accepted. Pass a correlation ID through messages and traces to follow the process. Monitor queue depth, oldest-message age, and DLQ arrivals, because decoupling often changes an immediate error into delayed work.
Key Takeaways
- Events announce facts; commands request actions.
- Fan-out needs a separate subscription or queue for each independent consumer.
- Streams support retained replay with ordering within partitions.
- Orchestration makes workflow progress and error paths explicit.
- Asynchronous services need useful status, correlation IDs, and backlog monitoring.
3.3 Handle slow calls and repeated work safely
Distributed systems experience partial failure: one dependency can fail while the rest keeps running. A slow service can exhaust callers' threads and connections as they wait. Bound the time and resources each dependency can consume, and decide which operations can safely be repeated.
Stop waiting and retry selectively
A timeout sets the longest wait for a remote response. Choose it using normal slow responses, such as the dependency's 99th percentile, with a little margin. Too short creates unnecessary retries; too long holds resources during an outage.
Retry transient failures such as brief network errors, throttling, and failover. A malformed request or permission error, such as HTTP 400 or 403, needs correction. Retrying it unchanged adds load without fixing the cause. Put retries at one layer: if three layers each make 4 attempts, one user action can cause 64 calls to the lowest service.
Exponential backoff increases waits, with a cap:
Starting at 200 ms, five waits are 200, 400, 800, 1,600, and 3,200 ms: 6,200 ms total. A 1,000 ms cap changes the last two to 1,000 ms, giving 3,400 ms total. Jitter randomizes each wait so clients do not all return together. Bound the attempt count or total elapsed time as well.
Make an uncertain outcome safe to repeat
A timeout does not tell you whether the receiver finished. Idempotency means repeating an operation has the same effect as doing it once. "Set order 42 to shipped" is idempotent; "add ten dollars" is not. A payment request can include an idempotency key that the server records with the result. A repeat with the same key returns that result instead of charging again. This also protects work delivered more than once by a queue. For a database task, commit its update and completion record in one transaction so a crash cannot leave only one committed.
Limit the spread of trouble
A circuit breaker stops contacting a failing dependency after a threshold. It opens during a cool-down, becomes half-open to try a few calls, and closes when recovery is demonstrated. Unlike a timeout, an open breaker rejects immediately without another dependency call.
Bulkheads isolate resource pools: reporting gets its own connections so it cannot consume checkout's. Throttling limits arrival rate, often returning HTTP 429 or 503; clients back off. Load shedding discards lower-priority work under overload. These controls protect capacity while the dependency recovers.
Graceful degradation keeps the core task usable when a noncritical feature fails. Hide recommendations, delay email, or serve cached content. A CDN can reduce origin load and serve stale content when configured to do so.
For checkout, use a 2-second payment timeout, 2 jittered retries, and the order ID as the idempotency key. Recommendations can use 300 ms, no retries, and a hidden-section fallback. After 5 consecutive payment failures, the breaker opens and checkout asks the customer to try again shortly. Payment remains a required function, so the application must not claim that an unpaid order is complete. More retries during overload can prolong an outage; bounded attempts and isolation keep recovery possible.
Key Takeaways
- Every remote call needs a timeout and a decision about retry safety.
- Retry transient errors at one layer with bounded backoff and jitter.
- An idempotency key prevents repeated execution of one business action.
- Circuit breakers stop calls; bulkheads stop resource exhaustion from spreading.
- Throttling, load shedding, and useful fallbacks protect core functions.
4Plan recovery across regions
A regional disaster can remove both working resources and the systems used to manage them. Recovery planning connects the business limits on outage and data loss to the amount of infrastructure kept ready elsewhere. Data replication, safe promotion, traffic routing, and dependency readiness each affect the result. Comparing full drill times and total cost makes the strategy choice concrete.
4.1 Set the outage and data-loss limits
Recovery has two separate business limits. The recovery time objective (RTO) is the longest acceptable interruption before service is restored. The recovery point objective (RPO) is the longest acceptable gap between the recovered data point and the interruption. RPO measures lost data in time, not the duration of the restore.
Read a recovery timeline
The last good backup is at 02:00, failure occurs at 04:15, and service returns at 07:45. The recovered data trails the failure by 2 hours 15 minutes. The outage lasts 3 hours 30 minutes. Against an RPO of 1 hour and an RTO of 4 hours, the data-loss target is missed while the restoration target is met.
Frequent copies or low replication lag improve RPO. Detection, decisions, infrastructure readiness, restore speed, checks, and traffic changes affect RTO. One can be good while the other is poor. Synchronous copies can preserve confirmed data even if starting the recovery environment takes hours. A quickly restarted stateless site can still depend on a nightly data export.
Count every recovery phase
For sequential steps, add the time from interruption through verified service. A worked recovery uses:
| Phase | Time |
|---|---|
| Detect failure | 10 min |
| Decide to recover | 20 min |
| Restore database | 100 min |
| Deploy application | 25 min |
| Check the workload | 15 min |
| Switch DNS | 5 min |
The total is 175 minutes, or 2 hours 55 minutes, leaving 1 hour 5 minutes against a 4-hour RTO. The database restore itself copies 1.5 TB at 250 MB/s: 1,500,000 MB divided by 250 MB/s is 6,000 seconds, or 100 minutes. Reporting only that restore time would omit 75 minutes of actual interruption.
Choose targets from impact
A business impact analysis examines how interruption harms each workload over time: revenue, penalties, obligations, reputation, and safety. Timing matters; payroll can be most critical near payday. Risk assessment adds the likelihood of different disasters. Business owners set the targets using that impact; architects determine how to achieve them.
Group workloads into recovery tiers. Checkout might require RTO 15 minutes and RPO 1 minute, planning 4 hours and 1 hour, and reporting 24 hours for both. A shared identity service needed by checkout must recover within checkout's requirements. Giving a dependency a slower tier prevents the higher-tier workload from recovering.
Lower objectives require more running capacity, replication, automation, and testing. A cheaper strategy can be appropriate when the avoided loss does not justify the extra cost and no requirement mandates it.
Availability summarizes a period; recovery objectives apply to an incident. An 8-hour regional outage nearly consumes the annual downtime allowed by 99.9% availability. Also consider delayed discovery: if corruption began days earlier, a current replica may already contain it. Retention and fine-grained recovery points determine whether a clean pre-damage state still exists.
Key Takeaways
- RTO limits interruption; RPO limits the age of the recovered data at failure.
- Measure recovery from interruption through verified service, including decisions.
- Business impact sets targets; shared dependencies must support their strictest dependents.
- Availability budgets and per-incident recovery objectives measure different things.
- Corruption recovery needs retained clean history from before the damage.
4.2 Choose how much recovery capacity stays ready
Disaster recovery strategies differ in what is already present in the recovery region. More readiness usually means faster restoration and higher running cost. Keep the data-copy method separate from compute readiness: both RPO and RTO must be achievable.
Compare the four strategies
| Strategy | Already present | Work after disaster | Typical recovery |
|---|---|---|---|
| Backup and restore | Protected data copies | Rebuild, restore, start, and route | Hours or longer |
| Pilot light | Replicated data and core infrastructure | Start or deploy application, scale, promote, and route | Tens of minutes |
| Warm standby | A small complete working stack | Scale, promote, and route | Minutes |
| Multi-site active/active | Full workloads serving in several regions | Move traffic and absorb the lost region's load | Near zero |
These ranges describe common designs. A measured end-to-end drill determines whether your workload meets its target.
Backup and restore
Copy backups to another region, preferably another account too. After failure, recreate infrastructure from templates, restore the data, start the application, and redirect users. Costs mainly come from backup storage, so this is the lowest-cost strategy. The backup interval commonly gives an RPO of hours; continuous backup can reduce it to minutes. Large data sets can make restoration take longer than the RTO even when the data is recent enough.
Protected historical copies also recover from deletion and corruption. Every faster strategy still needs that capability.
Pilot light and warm standby
A pilot light continuously copies data and keeps essentials such as networking ready. Application servers are stopped or not deployed, with images and templates prepared. It cannot serve requests until those components start. Replication lag often gives an RPO of seconds to minutes, while application deployment and scaling contribute to the RTO.
A warm standby runs a complete but reduced-capacity stack. It can serve some traffic immediately and can be tested while running. Scaling it to full load, promoting data, and routing users still take time. It costs more than pilot light because more components are already running.
A hot standby is an active/passive variant with full spare capacity. The first three main strategies are also active/passive: only the primary normally serves users. Cloud teams may use cold, warm, and hot labels differently, so inspect the actual readiness behind the name. Azure Site Recovery and AWS Elastic Disaster Recovery replicate servers and create or launch recovery machines at failover, providing pilot-light-style readiness.
Multi-site active/active
Several regions serve users at once, routed by latency, geography, or weights. Surviving regions need enough capacity for all traffic. RTO can approach zero; RPO for region loss depends on the replication design and can be near zero or seconds. Concurrent writes add difficult consistency and conflict decisions, making this the most complex and costly option.
A fast regional replica can also receive a bad update or encrypted data. Backups remain necessary for a clean historical state. A same-region backup cannot cover losing that region; a backup controlled by the same compromised credentials can be deleted with production. Geographic and account separation address those distinct failures.
Key Takeaways
- Backup and restore rebuilds from protected copies and usually has the slowest recovery.
- Pilot light must start missing components; warm standby already runs the complete stack at small scale.
- Active/active serves from several regions and needs surviving capacity and a write strategy.
- Use measured drills to judge targets; strategy names supply only rough ranges.
- Every strategy needs backups protected from the disasters it covers.
4.3 Move data and traffic between regions safely
Regional failover needs a usable data copy, a safe choice of writer, and a path for users to reach it. Switching a hostname alone cannot recover a database, prevent conflicting writes, or make missing credentials available.
Decide how writes work
Cross-region replication is usually asynchronous. Recent writes can be lost when the primary fails, so replication lag is a useful RPO estimate for that event. Examples include S3 Cross-Region Replication, Azure SQL failover groups, and Cloud SQL cross-region replicas. Aurora Global Database typically copies in under a second and can promote a secondary region in under a minute; complete workload recovery still includes other steps.
| Write model | Where writes go | Main design issue |
|---|---|---|
| Write global | One primary region | Safe promotion of a new writer |
| Write local | Any active region | Reconcile concurrent updates |
| Write partitioned | A designated home region per record | Route each record's writes to its owner |
For example, last-writer-wins conflict resolution in an eventually consistent DynamoDB global-table design can discard one concurrent update. Data ownership or conflict-tolerant operations reduce that risk. A split-brain occurs when two sites both act as primary. Fencing prevents the old primary from accepting writes before a replacement is promoted.
Route users to the working region
DNS failover changes health-based answers to the secondary endpoint. With checks every 30 seconds and 3 required failures, detection takes about 90 seconds. A 60-second TTL adds up to about 60 seconds of cached old answers, giving an approximate 150-second switch for most clients. Some clients cache longer. TTL is not the total failover time.
Global load balancing or anycast, such as Global Accelerator, Azure Front Door, or Google's global external Application Load Balancer, routes a stable front door to healthy regions without waiting for endpoint DNS changes. A CDN can also retry eligible requests at a secondary origin. CloudFront origin failover supports GET, HEAD, and OPTIONS; it does not supply POST or PUT write failover.
Prepare the recovery path
The data plane serves running traffic, queries, and data. The control plane creates and changes resources. Regional failure can impair management operations, so pre-provision capacity and routing where possible. Health-driven routing over existing infrastructure has fewer disaster-time dependencies than creating an environment after the outage starts.
Copy images, templates, certificates, secrets, and usable encryption keys. Prepare access roles, region-specific endpoints, DNS records, and quotas for full load. A recovery plan that needs a key or deployment system in the failed region still depends on that region.
Automatic failover is fast, but a false trigger can lose data up to the replication lag. Many teams automate zone switching and require a human regional decision followed by automated execution. Define declaration criteria and authority before the event.
Return without losing new data
Failback is another migration. The old primary is now stale. Copy back changes made while the recovery region was active, test the original environment, and switch during a quiet period. Reopening the original writer before synchronization can discard or conflict with the work completed during recovery.
Key Takeaways
- Regional RPO depends on the data-copy behavior, not the traffic router.
- Choose a write model and fence the old writer before promotion.
- DNS switching includes detection and caching delays.
- Pre-provisioned data-plane routing reduces reliance on disaster-time management changes.
- Prepare keys, permissions, images, quotas, and dependencies in the recovery region.
- Failback requires copying new changes back before restoring the original writer.
4.4 Match the recovery design to the requirements
Start a DR decision with the failure scenarios and business objectives. A strategy is useful only if it restores the complete workload within the RTO and preserves enough data for the RPO. The most expensive strategy can add complexity without solving the actual recovery problem.
Screen designs before comparing costs
- State the RTO, RPO, and disasters to cover: zone loss, region loss, corruption, and account compromise.
- Remove strategies that miss either target, using complete drill results where available.
- Compare total cost among those that remain, including operations and testing.
- Check data residency, required controls, dependencies, access, and capacity.
- Document and test the chosen design.
Multi-zone HA usually handles zone loss. A second region earns its cost when regional recovery requirements call for it. Corruption and stolen credentials need protected copies, even when regional capacity is excellent.
Work through two choices
An internal wiki has RTO and RPO of 24 hours. Nightly backups copied to another region lose at most almost 24 hours, and a restore drill takes 4 hours. Backup and restore meets the targets at the lowest cost.
An order system instead requires RTO 1 hour and RPO 5 minutes. Hourly backups miss the RPO, and a 3-hour restore drill misses the RTO. Pilot light has less than a minute of replication lag. Its drill takes:
| Phase | Time |
|---|---|
| Detection and decision | 5 + 5 min |
| Deploy and scale servers | 20 + 10 min |
| Promote database | 3 min |
| DNS switch and final checks | 5 + 2 min |
That totals 50 minutes, leaving 10 minutes. Warm standby completes in 20 minutes. Pilot light is the cheapest qualifying option, but widely varying drill times may make that margin unreliable. The measured distribution of recovery times matters alongside a single successful run.
Put faster recovery in cost terms
Suppose interruption costs 20,000 US dollars per hour. Warm standby costs 4,000 dollars more per month and saves 30 minutes per regional incident. It avoids 10,000 dollars per event but costs 48,000 dollars more each year. On cost alone, it pays off only above 4.8 regional disasters per year. A stricter RTO or mandatory control can justify it even when this simple financial comparison does not.
The cost calculation applies to qualifying designs. A cheap option that violates an essential recovery requirement has already failed the screening step.
Recover every hard dependency
Trace DNS, identity, secrets, keys, third-party APIs, deployment, and monitoring alongside application and database components. Each hard dependency must work outside the failed region or have a usable recovery path. A running application is not recovered if users cannot sign in or it cannot decrypt data.
Check quotas and usable capacity before relying on scaling a standby. Keep independent backup access and immutable copies in another account to resist a compromise that can delete production and its local backups. Do not treat "multi-region" as coverage for every disaster: a replicated bad update crosses the same geography that protects against a regional outage.
Key Takeaways
- Rule out designs that miss either RTO or RPO before comparing cost.
- Judge complete recovery times and allow for variation in drills.
- Compare extra running cost with the outage loss avoided.
- Trace shared dependencies and prepare recovery capacity before the event.
- Region loss, corruption, and account compromise require different protections.
5Backups and recovery tests
Recovery needs a clean, usable data point and a working path back to service. Backup frequency, retained history, consistency, and protection from deletion determine which points survive. Restore speed and supporting assets determine how quickly they become a running workload. Tests then check the design with real data and timestamps, exposing gaps that a successful backup job cannot reveal.
5.1 Design backups that can restore the workload
Backup design must answer four questions: which state is copied, how recent it must be, how long clean history survives, and how quickly a usable workload can be restored. A completed copy job answers only part of that design.
Choose a recoverable copy
| Backup type | What it copies | Restore requirement |
|---|---|---|
| Full | All selected data | The full set |
| Incremental | Changes since the previous backup of any kind | Full plus subsequent incrementals in order |
| Differential | Changes since the last full backup | Full plus the selected differential |
After a Sunday full backup, restoring Thursday night needs five sets with nightly incrementals: Sunday through Thursday. With differentials, it needs Sunday and Thursday, although the differential grows through the week. Managed EBS snapshots store changed blocks incrementally while the service tracks what is needed to restore a complete volume from a selected snapshot.
A crash-consistent snapshot captures disk state as if power stopped; in-memory data is absent and database recovery may be needed. An application-consistent copy coordinates flushing and pausing writes, for example with VSS or scripts. Use coordinated snapshots or a database's own backup mechanism for database recovery.
Set frequency and retained history
Four-hour snapshots can lose almost four hours just before the next copy. Point-in-time recovery (PITR) uses continuous backups and logs to choose a point between the earliest and latest restorable times. RDS and DynamoDB support windows up to 35 days; their newest restorable point commonly trails the present by about five minutes. That delay matters for a minutes-level RPO.
Retention must cover how late damage could be discovered and any required record keeping. One scheme keeps hourly copies for 2 days, daily copies for 35 days, and monthly copies for a year. Archive storage may take minutes or hours to retrieve, adding to RTO.
Separate backups from the threat
The 3-2-1 rule calls for at least three copies, two storage types, and one off-site copy. In cloud designs, use production data, an independent backup service or vault, and another-region copy, preferably in another account. The extended 3-2-1-1-0 rule adds an offline or immutable copy and zero errors in verified restores.
Immutable, or WORM, storage blocks changes and deletion until retention expires. Examples include S3 Object Lock, Backup Vault Lock, Azure immutable vaults, and Google Cloud Bucket Lock. Separate credentials, limited delete rights, and multi-factor approval protect access. Encrypt copies and preserve usable encryption keys; losing the key can make a complete backup unreadable.
Replication supplies recent copies but can carry damage. Versioning preserves previous object states: S3 records ordinary deletion with a delete marker, while Google Cloud Storage keeps the deleted live version as noncurrent. Independent point-in-time backups provide longer protected history.
Check restoration time and supporting assets
Back up images, configuration, templates, secrets, DNS information, and runbooks too. Backup policies can apply schedules, retention, cross-region or cross-account copying, and immutability by recovery tier.
At 200 MB/s, restoring 2 TB takes 2,000,000 ÷ 200 = 10,000 seconds, about 2 hours 47 minutes, before deployment and checks. If that misses RTO, reduce or split the restore set, improve throughput, or keep a live replica ready.
Key Takeaways
- Incremental restores need the chain; differential restores need the full set and selected differential.
- Coordinate database copies and check the latest usable PITR time.
- Frequency sets possible data loss; retention keeps older clean points available.
- Use immutable copies, separate access, and surviving encryption keys.
- Preserve configuration and deployment assets as well as data.
- Restore throughput, retrieval delays, deployment, and checks all affect RTO.
5.2 Prove recovery with measured tests
A backup can exist yet fail to restore because a key is missing, access has changed, or the application needs an overlooked dependency. Recovery tests check both correctness and elapsed time. They turn a design target into evidence about the current workload.
Increase realism in stages
A tabletop exercise walks through decisions and runbook steps without moving the system. A restore test rebuilds data in an isolated environment and checks row counts, checksums, and application reads. A component failover test stops an instance, promotes a database, or simulates zone loss. A regional drill moves production or a production-like copy to the recovery region. A game day brings the team together around a realistic planned failure.
Each test answers a different question. A tabletop can expose an absent decision owner but cannot measure database restore speed. A database-only test can verify promotion but miss broken sign-in in the recovery region.
Define a controlled experiment
Write the objective and hypothesis, such as "After the primary database fails, the application recovers within 3 minutes with no confirmed orders lost." State scope, blast radius, participants, measurement method, stop conditions, and rollback steps. Fault injection tools such as AWS Fault Injection Service and Azure Chaos Studio can stop instances or add latency. Start outside production and expand gradually; use alarms that automatically stop the experiment if impact exceeds the plan.
Record timestamps from the start of interruption. Include detection, decision, each recovery step, and verified service. Record the last recovered transaction time as well. A timer started when an engineer presses the failover button excludes time users already spent down.
Judge a drill against both targets
Targets are RTO 1 hour and RPO 5 minutes. Failure starts at 10:00, the alarm at 10:06, and the decision at 10:18. Database promotion finishes at 10:24, application scaling at 10:41, DNS changes at 10:44, and checks pass at 10:52. Recovery took 52 minutes, leaving 8 minutes. The last recovered transaction is from 09:58:30, so the data-loss window is 1 minute 30 seconds. Both targets are met.
The timestamps also show where to improve: 12 minutes passed between detection and the decision. Pre-agreed failover criteria can reduce that delay. Measuring only the six-minute database promotion would hide most of the interruption.
Keep recovery executable
A runbook lists ordered steps, owners, commands or automation links, access and quota prerequisites, and a check after each step. Keep it in version control and update it after architecture changes and tests. Automate repeatable execution while preserving a clear decision authority.
Schedule testing by criticality and repeat it after significant changes. Critical data may need monthly or quarterly restore tests and at least annual regional drills; applicable requirements may set another schedule. Include monitoring, alerts, logging, and failback so the recovery region can be operated and new data can return safely.
After a test, compare results with targets, record gaps, assign fixes, and retest. A missing quota needs preparation; an oversized restore may need a different strategy. Review the process without blame so the next run resolves the actual cause.
Key Takeaways
- Choose tests that exercise the data, application, dependencies, and people needed for recovery.
- Define hypotheses, blast radius, stop conditions, and rollback before fault injection.
- Measure from interruption to verified service and compare the last recovered transaction with failure time.
- Keep versioned runbooks with owners, prerequisites, automation, and checks.
- Test after significant changes, include failback, and retest assigned fixes.
Designing Resilient Architectures examples
1Turn a service promise into a resilience target
11 steps
- 1IntroductionStart with a booking that must finish
A booking service needs to show available appointments and confirm a reservation. Its web server can be healthy while the reservation database is down, so server uptime alone misses the business failure. Users judge resilience by what they experience: high availability means rare, brief interruptions, and fault tolerance means covered failures go unnoticed. Follow one booking through its dependencies, then turn the acceptable interruption into a number you can compare with a design.
- 2ExplanationName the behavior users experience
High availability keeps interruption rare and brief. Fault tolerance means a covered failure causes no interruption users notice. A standby that takes time to become writable supports HA; spare web capacity alone does not hide the requests interrupted on a failed instance. Safe, transparent retries are part of delivering seamless behavior.
- 3ExampleTrace the required path
The booking request passes through DNS, a load balancer, the application, identity verification, and the reservation database. Ask what happens when each one fails. Two web instances remove the single-instance dependency, but one identity service can still stop every booking. Include shared credentials and certificates: a component can fail through expiry as well as a crashed machine.
- 4Key InsightSeparate the causes that can break copies
Two instances do not provide two independent chances of success when the same event can break them both. A shared zone exposes them to location failure; a shared faulty release exposes them to a software failure across zones. Fault isolation reduces the blast radius, while redundancy supplies an alternative that must remain usable and large enough.
- 5ChallengeDoes a second database finish the plan?
The booking database has a live replica. A mistaken update reaches both copies. Can switching to the replica recover the earlier booking records, and what is needed?
---reveal---
Switching supplies another current copy, including the mistake. Recovery needs a protected point from before the update. Replication helps keep data available; independent backup history enables this return to an earlier clean state.
- 6ExplanationTranslate the target into minutes
The booking target is 99.9% over 20 days. First convert the percentage to 0.999 and the period to 28,800 minutes. The unavailable fraction is 0.001.
That is 28 minutes 48 seconds of allowed interruption. Include maintenance that prevents bookings while customers need the service.
- 7ExampleCombine two required services
Suppose the application and database each have availability 99.8%. Every booking needs both. Under an independent-failure model, multiply their available fractions:
The path is modeled at 99.6004%, below either component. The average would still be 99.8%, but averaging fails to account for the distinct times when either required component can stop the request.
- 8ExampleImprove one tier without forgetting the other
Give the application two independent alternatives, each able to handle all demand at 99.8%. Their joint unavailable fraction is 0.002 × 0.002, so the pair is available 99.9996% of the time in the ideal model. Keep the database at 99.8%:
The whole path is still only about 99.80%. Application redundancy cannot remove database interruption.
- 9TipUse recovery speed as another design lever
A component with a long interval between failures can still perform poorly if each repair is slow. Estimate availability as MTBF divided by MTBF plus MTTR, with matching time units. Automatic detection and a prepared replacement reduce MTTR. Measure restored booking behavior, because a running replacement process can still be unable to reach a required dependency.
- 10ChallengeChallenge the promise
A team promises 99.99% booking availability because its redundant web tier exceeds that figure. The database remains a single hard dependency with a 99.9% design figure. What must the review resolve?
---reveal---
The database needs a stronger design or a usable fallback for the required function. The web tier figure alone cannot support the complete promise. The calculation must also account for shared failure causes and switching delays, then be checked against business-level measurements.
- 11RecapUse three questions in the design review
Ask what business function must work, what failure could stop its request path, and how much interruption is acceptable over the chosen period. Use dependency calculations to locate weak tiers, then inspect the real separation and failover behavior behind the model. Keep access, data survival, and clean historical recovery as distinct requirements when choosing the next improvement.
2Keep a reservation service running across zones
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionPlan for a location to disappear
- 2ExplanationChoose the boundary for the failure
- 3TipRead scope and redundancy separately
- 4ChallengeDoes an availability set cover the outage?
- 5ExplanationGive requests healthy destinations
- 6ExampleSize the surviving pair of zones
- 7Key InsightState must move with the request
- 8ChallengeFind the remaining routing weakness
- 9TipReplace instances without cutting off work
- 10ExplanationProtect confirmed reservations
- 11ConnectionMake the application follow database promotion
- 12ExampleCheck every store in the reservation flow
- 13ChallengeFollow the outage through the whole design
- 14Key InsightZone copies and history serve different failures
- 15RecapJudge the surviving workload
3Let services fail without stopping every caller
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate a submitted task from a finished task
- 2ExplanationStore work before the worker is ready
- 3ExampleMeasure the spike
- 4ExampleSubtract arrivals before calculating drainage
- 5ExplanationKeep crash recovery and duplicates safe
- 6ChallengeWill a longer visibility timeout fix this?
- 7ExplanationBroadcast the fact to separate buffers
- 8ConnectionChoose notification, work, or replay
- 9ChallengeAdd a new consumer without blocking email
- 10TipMake delayed progress visible
- 11ExplanationBound the call that must answer now
- 12ExampleSpread a limited retry budget
- 13ExplanationProtect healthy functions from the stalled one
- 14ChallengeCombine safe delivery with safe calls
- 15Key InsightMore attempts can keep the outage alive
- 16RecapGive each path a clear failure behavior
4Choose and execute a regional recovery plan
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionRecover the whole scheduling service
- 2ExplanationPut two objectives on the timeline
- 3ChallengeJudge each objective separately
- 4ConnectionBring dependencies into the same target
- 5ExplanationSeparate absent compute from running compute
- 6ExampleRead the candidate drill evidence
- 7ChallengeWhat distinguishes these two standbys?
- 8ExplanationChoose one safe writer during promotion
- 9ExampleBudget traffic movement time
- 10TipPrepare what the switch needs
- 11ChallengeCan a DNS change enforce one writer?
- 12ExampleRemove designs that miss either limit
- 13Key InsightCheck what a narrow margin can absorb
- 14ChallengeWhich scenario is still uncovered?
- 15ConnectionPlan the return before the original comes back
- 16ChallengeApprove the complete recovery path
- 17RecapBase the decision on complete evidence
5Build a backup policy and prove a restore
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart from the state that must survive
- 2ExplanationKnow which backup sets restoration needs
- 3TipCapture a state the database can use
- 4ExplanationPreserve both recent and older clean points
- 5ExamplePut restore throughput on the timeline
- 6ChallengeCan the attacker reach the recovery copy?
- 7ExplanationChoose a test that answers the question
- 8TipSet the limits before injecting a fault
- 9ExampleRead a complete drill timeline
- 10ChallengeWhat should improve next?
- 11ConnectionTest the cycle after the first success
- 12RecapUse restored service as the evidence
Designing Resilient Architectures practice questions
Set 1: Messages, retries, and independent services10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Availability and zone failure decisions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Regional recovery and strategy selection10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Backup evidence and combined failure scenarios10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Active/active
Application-consistent snapshot
Asynchronous replication
Availability
Availability set
Availability zone
B
Backlog
Backup and restore
Blast radius
Bulkhead
Business impact analysis
C
Choreography
Circuit breaker
Claim-check pattern
Cold cache
Command
Connection draining
Consumer
Control plane
Correlated failure
Crash-consistent snapshot
D
Data plane
Data residency
Dead-letter queue
Differential backup
Distributed tracing
DNS failover
Durability
E
Event
Event bus
Eventual consistency
Exponential backoff
F
Failback
Fan-out
Fault tolerance
Fencing
Full backup
G
Game day
Graceful degradation
H
Hard dependency
Health check
High availability
Hot standby
I
Idempotency
Immutability
Immutable infrastructure
Incremental backup
J
Jitter
M
Message queue
MTBF
MTTR
O
Object versioning
Orchestration
P
Pilot light
Point-in-time recovery
Producer
Publish/subscribe
R
Read replica
Recovery margin
Recovery point objective
Recovery tier
Recovery time objective
Redundancy
Region
Region pair
Regional failover drill
Replication lag
Resilience
Restore test
Retention period
Runbook
S
Serial dependency
Service level agreement
Service quota
Single point of failure
Split-brain
Stateless instance
Static stability
Sticky session
Stop condition
Stream
Synchronous replication
T
Tabletop exercise
Throttling
Timeout
V
Visibility timeout
W
Warm standby
Workload
Z
Zonal resource
Zone redundancy
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.