High Availability Checklist: From Single Points of Failure to Active-Active Architecture
A practical guide for backend developers and operations engineers to identify single points of failure, compare availability architectures, set rate-limiting and circuit-breaker thresholds, and design CI/CD pipelines for controlled, auditable rollbacks. Includes SLO examples, configuration parameters, and operational checklists.
This guide is for developers and architects with backend or operations experience. It addresses three practical questions: how to identify single points of failure, how to set thresholds for rate limiting, circuit breaking, and graceful degradation, and how to make software delivery rollback-ready and auditable.
All numerical values are examples. Choose production settings based on your own load tests and business objectives.
1. Start with SLOs and a Single-Point-of-Failure Checklist
High availability starts with measurable service-level objectives (SLOs). Once the team agrees on those objectives, review each component that could make the entire service unavailable.
Example SLOs
| Metric | Example target | Measurement definition |
|---|---|---|
| Availability | 99.95%, equivalent to approximately 22 minutes of downtime per month | In one-minute windows, divide successful requests to core endpoints by total requests, excluding client-side 4xx errors |
| Order endpoint P99 latency | Below 800 ms | Measure all order requests in five-minute windows. Record timed-out requests at the timeout value, and count retried requests only once |
| Recovery time objective (RTO) | Failover within the same metropolitan area in no more than five minutes | Time from the failure alert being triggered until core transactions return to normal |
| Recovery point objective (RPO) | Less than one second | The time window of acknowledged writes that have not reached the new primary when failover occurs |
Single-Point-of-Failure Checklist
| No. | Check | Verification method |
|---|---|---|
| 1 | Does the database have only one primary, or are the primary and replicas in the same availability zone? | Review the topology and run a primary-node shutdown drill |
| 2 | Are service discovery, configuration services, or gateways deployed in only one availability zone? | Check instance placement and simulate the loss of an availability zone |
| 3 | Do object storage or cache endpoints lack switchable configuration or a failover mechanism? | Change the endpoint in staging and confirm that switching does not require redeployment |
| 4 | Does DNS point to only one load balancer instance? | Inspect DNS records and the number of backend instances behind the load balancer |
| 5 | Do third-party payment or SMS services lack a backup provider? | Confirm that a backup is configured, a switching control exists, and the switch is tested regularly |
Assign every item an owner, a remediation deadline, and a verification method. Single points of failure without owners often remain unnoticed until an incident occurs.
2. Choose Between Multi-AZ, Local Active-Active, and Cross-Region Active-Active
| Architecture | Typical RTO | Typical RPO | Main trade-offs | Suitable for | Not suitable for |
|---|---|---|---|---|---|
| Cross-region cold standby | Hours | Minutes to hours | Low storage cost; recovery requires manual intervention | Internal systems that can tolerate lengthy recovery | Core transactions and downtime-sensitive services |
| Active-passive across availability zones in the same region | Minutes | Depends on replication; can approach zero with synchronous replication | Additional cross-AZ network and write latency | A starting point for most online services | Requirements for cross-region disaster recovery |
| Active-active within a metropolitan area or across regions | Seconds to minutes | Depends on the consistency strategy | Requires data partitioning, write-conflict handling, and cross-region traffic routing | Geographically distributed users, high downtime costs, and teams experienced with distributed data | Small teams or workloads requiring strong consistency that cannot be partitioned |
These figures are illustrative ranges, not guarantees. Any claim of “near-zero RPO” should explain three things:
- The acknowledgment boundary for synchronous replication. A primary may wait for a replica to persist data to disk, or it may wait until the replica has applied the log. A broader acknowledgment boundary reduces RPO but increases write latency.
- The cross-AZ latency limit. Measure P99 cross-AZ round-trip latency under load and determine whether write latency still meets the SLO.
- The failover criteria. For example, trigger automatic failover only after three consecutive failed health checks and a failure lasting 30 seconds. Before switching, confirm that replica lag is within the allowed range to avoid data loss. These thresholds are examples.
For a service operating in one region that requires near-zero RPO, active-passive deployment across availability zones is usually a conservative choice. Run a complete failover drill at least once per quarter and record the actual RTO and RPO.
3. Set Rate-Limiting, Circuit-Breaker, and Degradation Thresholds
Use the following process to establish thresholds:
- Load-test the stable capacity of one instance. For example, an instance may sustain 1,000 QPS while keeping P99 latency below 800 ms.
- Set the rate limit to 70–80% of stable capacity. This leaves headroom for traffic spikes.
- Base circuit breaking on failure and slow-call rates. Do not evaluate the thresholds until the window contains enough samples, reducing false triggers at low traffic volumes.
- Degrade noncritical functionality. Return cached data or default values for nonessential features while keeping the core transaction path available.
Example Configuration
All values below are illustrative.
rate_limit:algorithm: token_bucketqps: 700 # 70% of the load-tested stable capacity of 1,000 QPSburst: 100 # Allowed instantaneous burstreject_status: 429 # Return on rejection, with a Retry-After headercircuit_breaker:sliding_window: 100 # Evaluate the most recent 100 callsmin_calls: 20 # Do not evaluate with fewer than 20 samplesfailure_rate_threshold: 50 # Open when the failure rate exceeds 50%slow_call_duration: 800ms # Calls exceeding this duration count as slowslow_call_rate_threshold: 60open_duration: 30s # Wait time while the circuit is openhalf_open_max_calls: 10 # Probe calls allowed in the half-open statetimeout:connect: 200msread: 1s # Slightly above the latency SLO to avoid cutting off normal requestsretry:max_attempts: 2 # Includes the initial attemptonly_idempotent: true # Retry only idempotent endpointsbackoff: exponential, starting at 100ms, with random jitter
Retries amplify downstream load. With the example retry limit, downstream traffic can double in the worst case. Cap retry attempts and apply retries only to idempotent endpoints.
Rate-Limiting and Circuit-Breaker Checklist
- Does every downstream call have a timeout?
- Are retries restricted to idempotent endpoints and capped?
- Are rate limits based on this service’s load tests rather than copied from another service?
- Have business stakeholders approved the degraded responses returned when a circuit opens?
- Are rate-limiting and circuit-breaker metrics connected to alerting?
4. Make CI/CD Pipelines Rollback-Ready and Auditable
Follow four principles when designing the delivery pipeline:
- Keep build artifacts immutable. Tag container images with the commit SHA, and do not allow an existing tag to be overwritten.
- Roll out in stages. Increase traffic through 1%, 10%, 50%, and 100%, monitoring error rates and P99 latency at each stage.
- Define explicit rollback criteria. For example, automatically roll back if the error rate exceeds 0.5% over a five-minute canary window, or if P99 latency exceeds the SLO for three consecutive minutes. These thresholds are examples.
- Keep database changes backward-compatible. Use an expand-and-contract approach so old and new application versions can run at the same time.
Rollback Procedure
- Stop increasing traffic to the new version and freeze the service’s deployment pipeline.
- Route traffic back to the previous stable version, confirming that its container image is still available.
- Monitor error rates, P99 latency, and key business metrics until they return to baseline. This typically requires at least 10 minutes of observation.
- Check whether the release included database changes. If it did, roll back the application code only; do not run destructive reverse migrations.
