CloudVectra Logo CloudVectra
CloudVectra Knowledge Hub

AWS Architecture Mistakes: When High Availability Becomes Expensive

Size EC2, load balancing and database resilience against failure requirements, with cross-AZ billing distinctions and a worked availability cost model.

6 min read

1. The scenario: a small application inherits a large production template

A subscription management service peaks at 300 requests per second. Its platform template creates six EC2 instances across three Availability Zones, one ALB per environment, a Multi-AZ database and another read replica. The design survived a review because every component sounded reliable. Nobody checked how much capacity remained after a zone failed.

The right question is whether the application meets its latency and transaction objectives during a defined failure. Replica count alone does not answer it. A critical payment path and a rebuildable internal report can have different recovery requirements.

All dollar amounts below are illustrative USD assumptions, using a 730-hour month, rather than current regional quotes. Replace them with your contracted rates and measured traffic.

2. How it works: distribution is only part of availability

An ALB routes eligible HTTP requests to healthy targets. EC2 Auto Scaling maintains configured capacity, while application startup, health checks, connection draining and dependency recovery determine how quickly replacement capacity becomes useful. Spreading instances across zones reduces one failure risk; it does not make a shared database or deployment error disappear.

For symmetric zones, a useful capacity test is: surviving zones × tested sustainable capacity per zone must exceed peak demand plus the chosen safety margin. With three zones, each supporting 180 requests/second, a zone loss leaves 360. With two zones each supporting only 180, a loss leaves 180 and misses the 300 target. Benchmark this at the required p95 latency, including database limits.

RDS has two distinct Multi-AZ architectures. A DB instance deployment has one failover standby that cannot serve application reads. A supported Multi-AZ DB cluster has two readable standbys. RDS deployment documentation explains the distinction. An ordinary read replica is another choice with replication and promotion behavior to assess.

AWS ha architecture showing resource dependencies and the costs to evaluate.

3. Cost components: charge for resources and traffic paths

ComponentMeter or decision to include
EC2Running instances, operating system, CPU credits where applicable
StorageEBS capacity, performance, snapshots and retained volumes
ALBLoad balancer hours, capacity units and applicable public IPv4 addresses
DatabaseChosen HA configuration, storage, I/O, backups and extra readers
NetworkActual service-to-service zone crossings and regional traffic
OperationsHealth checks, alarms, logs, deployment and recovery testing

ALB capacity units consider several dimensions; do not add every dimension as though each were an independent LCU charge. Use the pricing formula and observed load. Public IPv4 addresses and bandwidth can be separate from the load balancer line. See ELB pricing.

4. Where things go wrong

Teams often run enough capacity for two simultaneous zone losses when the approved objective requires surviving one. Conversely, aggressive bin packing can remove all failure headroom. Both errors come from using average CPU as the availability model.

An oversized idle application standby is not necessarily necessary, but a manually undersized managed database standby is not a universally supported option. RDS controls its supported HA configuration. Right-size the supported deployment and test failover rather than inventing an asymmetric topology the service cannot provide.

Cross-zone charges are service-specific. ALB-to-target cross-zone traffic has a different billing treatment from ordinary EC2-to-EC2 traffic or NLB cross-zone forwarding. Database HA replication also has service-specific treatment. Do not multiply all replicated bytes by a generic EC2 transfer price. Consult AWS networking guidance and the relevant service pricing.

A separate load balancer for every tiny application also creates a fixed floor. Shared ALB host/path routing may reduce that floor when trust boundaries, quotas, deployment ownership and blast radius permit it.

5. Real-world example: preserve headroom while removing excess

Assume six workers cost $0.12/hour each. Testing shows four smaller workers at $0.10/hour, split across two zones, can each sustain 180 requests/second. Losing either zone leaves two workers and 360 requests/second. The four-worker design meets this particular 300-request target.

Monthly itemOriginal designCandidate design
Application compute6 × 730 × $0.12 = $525.604 × 730 × $0.10 = $292.00
ALB, addresses and capacityAssumed $45Assumed $45
Supported database HA, storage, backupAssumed $380Assumed $380
Other measured network and telemetryAssumed $70Assumed $70
Total$1,020.60$787.00

The modeled difference is $233.60/month. Database protection stays in the estimate because the requirement still needs it. Deployment surge, burst traffic, failover reconnects and dependency saturation must pass testing before accepting the candidate. A capacity calculation is evidence to investigate, not a production guarantee.

6. Alternatives and their tradeoffs

PatternAppropriate useTradeoff
Multi-zone active applicationService must survive a zone lossPay for tested spare capacity
Smaller steady baseline plus scalingDemand changes with usable startup timeScaling lag and quota risk
Recoverable single-zone environmentApproved interruption tolerance, often nonproductionLonger outage during zone loss
Regional active-passiveRegional continuity requirementReplication and promotion workflow
Regional active-activeLocality or stringent continuity justifies complexityConflict handling and two operating footprints

Active-active applications do not imply a database can accept writes in both regions. Establish the engine’s write ownership and consistency behavior. Regional duplication belongs in the AWS DR decision, not an automatic extension of a zone design.

7. Practical recommendations

Write a failure budget: peak requests, maximum lost capacity, recovery deadline and acceptable data loss. Include queue workers, scheduled jobs and cache warmup in the test. Verify deployment health checks represent useful service rather than an HTTP process returning 200.

Exercise a zone-loss scenario at production-like load and record error rate, latency, surviving capacity and database reconnect behavior. Add maintenance and rollout headroom explicitly. Reassess after a material workload change; do not preserve launch-day standby sizes indefinitely.

Review smaller environments separately. Shared ingress, scheduled nonproduction capacity or a simpler hosting model can reduce cost without changing production’s approved availability objective.

8. CloudVectra perspective: make resilience spending explainable

Use CloudVectra cost insights to review the complete application footprint, and Cost Centers to assign shared ingress and standby costs to their owners. Track availability overhead alongside cost per successful transaction and the tested failure capacity.

Budgets and forecasting can make added replicas visible during planning. Native load tests, failover exercises and AWS telemetry establish whether a design meets its objective; financial visibility helps explain what that outcome costs.

Continue the architecture series

Cloud Architecture Decisions That Quietly Increase Your AWS and Azure Bills

For a cross-cloud view, read AWS vs. Azure Architecture Costs: High Availability, Networking, Containers and Disaster Recovery Compared, including matched workload requirements and practical cost calculations.

DecisionAWS articleAzure article
haAvailability sized for failureRedundancy has specific meters
microservicesEvery boundary adds workBoundaries carry a platform bill
networkDraw the billed data pathSecurity follows the actual path
dataRetain with a purposeCopies need owners and expiry
containersRequests shape the node billScale pods and nodes together
observabilityObserve with a volume budgetControl telemetry before ingestion
recoveryBuy a tested recovery outcomeReplication is one recovery step

Sources and further reading

Choose whether CloudVectra may load optional analytics. You can change this at any time.

Cookie names, providers, and retention