Production-Grade Highly Available Web Platform on AWS
Global DNS/CDN edge with WAF, independently scaled web and API fleets across two AZs, explicit RDS standby failover and asynchronous read scaling, ElastiCache, and same-AZ NAT egress.
Explore diagramOpen editable diagramExplore on mobile. Create and edit manually or with AI on a computer.
Architecture diagram
Explore diagramEdit this exact diagram
Explore diagramOpen on the canvasAWS web platform with Route 53, CloudFront, WAF, ALB, multi-AZ web and API fleets, zonal NAT gateways, ElastiCache, and distinct RDS primary, standby, and read replica. Open the image to explore this ready-made diagram.The image links to a fully editable BuildPlane starter.
Overview
Amazon Route 53 resolves the CloudFront endpoint, where AWS WAF protects requests before they reach a multi-AZ Application Load Balancer. Private web and API Auto Scaling fleets use ElastiCache and an RDS primary. A synchronous standby in another zone provides failover, while a separate asynchronous read replica supports read scaling. Zonal NAT gateways provide outbound access.
Components
- Global Edge: Route 53 resolves the domain, CloudFront caches and terminates TLS, and WAF filters traffic before it reaches the Region.
- Load Balancing: An internet-facing ALB in public subnets health-checks targets and spreads requests across Availability Zones.
- Compute Tiers: Separate Auto Scaling Groups let the stateless web tier and the API tier scale on their own signals.
- Data Layer: The RDS primary replicates synchronously to its failover standby and asynchronously to a separate read replica. ElastiCache absorbs hot reads.
- Egress: Each private subnet uses the NAT gateway in its own Availability Zone for outbound dependencies.
Traffic Flow
- Users resolve the domain in Route 53 and hit CloudFront, which forwards dynamic requests after WAF evaluation.
- CloudFront routes origin traffic to the ALB, which balances across the web tier in private subnets.
- The web tier calls the API tier and uses same-AZ NAT egress for outbound calls.
- The API tier reads from ElastiCache and writes to the RDS primary.
- RDS keeps the AZ B standby synchronized for automatic failover, while the separate read replica receives asynchronous changes.
Customize First
- Pick instance/engine sizes, cache policy, and replica count that match your read/write ratio.
- Add a second Region with Route 53 failover and cross-Region replication when your RTO/RPO requires it.
- Add Secrets Manager for credential rotation and define backup retention and restore testing.
Related AWS guides
Understand the decisions behind this diagram
Use these practical explanations to compare services, failure boundaries, and operating tradeoffs before adapting the architecture.
Networking
ALB vs NLB: How to Choose the Right AWS Load Balancer
ALB understands web requests. NLB moves network connections with very low overhead. The right choice follows from the protocol and routing behavior your application needs.
Read the guideArchitecture
How to Design a Highly Available Web Application on AWS
High availability is not a product switch. It comes from removing single points of failure and proving the application can keep serving when a component or zone fails.
Read the guideAWS Certification
AWS Solutions Architect Associate Study Guide for SAA-C03
SAA-C03 tests architectural judgment. Build a decision matrix, trace real diagrams, and practice explaining why three plausible answers lose to one requirement.
Read the guideDesign rationale
Decisions that shape this architecture
Use the edge to protect and cache before the Region
Route 53, CloudFront, and WAF reduce avoidable origin traffic and provide a clear public protection boundary before requests reach the ALB.
Keep private tiers independently scalable
Web and API Auto Scaling groups respond to different signals. This prevents a busy presentation layer from forcing identical capacity into business logic.
Distinguish database failover from read scaling
The RDS primary replicates synchronously to a standby in another zone for automatic failover. The separate asynchronous read replica supports suitable read workloads, while ElastiCache serves hot data. These are different responsibilities with different consistency and recovery behavior.
Before production
Operational checks
Test cache loss, database failover, and read-replica lag under realistic load.
Set scaling policies from measured latency, saturation, and queueing signals.
Use one NAT gateway per Availability Zone when zonal independence justifies the cost.
Validate backup restore, not only backup creation.
Scope and tradeoffs
What this diagram does not solve
The design is still regional
Global DNS and CDN services do not make the origin multi-Region. Regional recovery requires another regional stack and a data replication plan.
More components create more operating responsibility
Cache policy, replica lag, scaling thresholds, NAT cost, patching, secrets, and deployment safety require ownership and observability.
Common questions
Frequently asked questions
Why put CloudFront in front of an ALB?
CloudFront can cache content, terminate connections near users, reduce origin load, and provide a global attachment point for WAF before forwarding dynamic traffic to the ALB.
What is the difference between RDS Multi-AZ and a read replica?
Multi-AZ provides a synchronous standby for availability. A read replica is an asynchronous copy used primarily to scale eligible reads.
Does this architecture require two Auto Scaling groups?
Separate groups are valuable when web and API workloads have different releases, resource profiles, or scaling signals. A simpler product can combine them.
Keep exploring
Related AWS architectures

Highly Available Three-Tier Web Application on AWS
The web, application, and data tiers each have a clear role and an explicit availability mechanism. Load balancers select healthy compute replicas, each compute fleet can scale independently, and RDS maintains a standby in another zone. This is a practical starting point for discussing what keeps serving when an instance or an Availability Zone fails.
Explore the architecture
Containerized Web Service with Amazon ECS and Fargate
This architecture shows the running service: a protected global edge, a Multi-AZ load balancer, private Fargate tasks, and managed data services. It is a useful starting point for teams outgrowing a single server or a function-based API; deployment, credential delivery, and monitoring can be added around that request path.
Explore the architecture
An AWS Application That Survives an Availability Zone Failure
This architecture focuses on one failure question: what happens when an entire Availability Zone becomes unavailable? Healthy application capacity remains in the other zone, the load balancer removes failed targets, and RDS can promote its synchronous standby.
Explore the architectureReady-made AWS diagramFrom reference to working draft
Explore this AWS architectureAdapt this architecture with your AWS AI Agent
Open the diagram from this guide and explore how it works. Create and edit manually or with AI on a computer.Start from the exact diagram in this guide. Change requirements, challenge a decision, or ask what fails first, while keeping the architecture editable.