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 diagram

Explore on mobile. Create and edit manually or with AI on a computer.

AWS 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 replicaExplore diagram

AWS 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.

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

  1. Users resolve the domain in Route 53 and hit CloudFront, which forwards dynamic requests after WAF evaluation.
  2. CloudFront routes origin traffic to the ALB, which balances across the web tier in private subnets.
  3. The web tier calls the API tier and uses same-AZ NAT egress for outbound calls.
  4. The API tier reads from ElastiCache and writes to the RDS primary.
  5. 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

Use these practical explanations to compare services, failure boundaries, and operating tradeoffs before adapting the architecture.

Design rationale

Decisions that shape this architecture

1

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.

2

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.

3

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

Explore the library
Three-tier AWS diagram with public and internal load balancers, web and application replicas in AZ A and AZ B, and RDS primary and synchronous standby
Getting Startedintermediate

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
Amazon ECS Fargate web architecture diagram with CloudFront, WAF, a multi-AZ ALB, private Fargate tasks, RDS, and ElastiCache
Containersadvanced

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
AWS Availability Zone failure architecture diagram with a cross-zone load balancer, application capacity in two AZs, and RDS Multi-AZ failover
Getting Startedbasic

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 architecture

Ready-made AWS diagram

Explore this AWS architecture

Open the diagram from this guide and explore how it works. Create and edit manually or with AI on a computer.

Explore diagram