Highly Available Three-Tier Web Application on AWS

Two-AZ web and application capacity, public and internal load balancing, and an explicit RDS primary and standby make three-tier resilience visible.

Explore diagram

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

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 standbyExplore diagram

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. Open the image to explore this ready-made diagram.

Overview

A public Application Load Balancer distributes requests across web replicas in two Availability Zones. The web tier calls an internal load balancer, which distributes business operations across application replicas in both zones. The data tier shows an RDS primary and synchronous standby explicitly, making compute redundancy and database failover visible in one three-tier design.

Components

  • Public and Internal Load Balancers: The public ALB distributes HTTPS requests across healthy web instances. The internal ALB independently distributes business requests across healthy application instances; both span two AZs.
  • Web Tier: Two representative EC2 instances in separate private AZ subnets belong to one web Auto Scaling group.
  • Application Tier: Two representative EC2 instances belong to a separate application Auto Scaling group, allowing business-logic capacity to scale independently.
  • RDS Multi-AZ: The primary serves application traffic and synchronously replicates to the standby in the other AZ. RDS promotes the standby during failover; applications reconnect through the stable endpoint.

Request Flow

  1. Web users send HTTPS requests to the public ALB, which selects healthy web capacity in either AZ.
  2. Both web replicas call the internal ALB, which selects a healthy application instance independently.
  3. Application instances use the RDS endpoint to read and write the primary; the primary synchronously replicates to the standby.
  4. After an AZ failure, health checks exclude failed compute and RDS promotes the standby if needed. Surviving capacity and connection retries complete the recovery.

Customize First

  • Choose instance sizes and scaling signals for the web and application tiers.
  • Test an AZ outage, including spare capacity, database reconnection, and retry budgets.
  • Add CloudFront and WAF when the application needs global caching and edge protection.
  • Add backups, monitoring, and secrets management before production use.

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

Scale the web and application tiers separately

The explicit web and application instances represent separately managed Auto Scaling fleets. Both fleets retain capacity in two zones, and the internal load balancer gives the web tier a stable endpoint when application targets change.

2

Keep compute stateless

Requests can move between healthy instances because session state and durable records do not live on one application host. This is what lets the load balancer remove failed targets safely.

3

Use Multi-AZ for database availability

The primary and standby are shown separately so the failover relationship is visible. This Multi-AZ DB instance deployment uses synchronous replication; the standby does not serve application reads. Backups and read replicas address different needs.

Before production

Operational checks

Test target health checks against real application readiness, not only process uptime.

Set minimum Auto Scaling capacity in each Availability Zone.

Exercise database reconnection behavior during an RDS failover.

Add alarms for unhealthy targets, scaling saturation, error rate, and database pressure.

Scope and tradeoffs

What this diagram does not solve

One Region remains a shared failure domain

The design handles instance and Availability Zone failures inside one Region. Regional continuity requires a second deployment, data replication, and an explicit traffic failover policy.

Security and operations need workload-specific detail

Security groups, secrets rotation, patching, backups, WAF rules, and deployment controls should be added around the actual application requirements.

Common questions

Frequently asked questions

Why separate the web tier from the application tier?

The separation gives each tier its own scaling, deployment, and failure boundary. It is useful when frontend delivery and application processing have different capacity profiles.

Does RDS Multi-AZ improve read performance?

No. Multi-AZ primarily provides a standby for availability. Add read replicas or another read-scaling design when query volume requires it.

Can I edit this AWS architecture diagram?

Yes. Open the starter in BuildPlane to move services, change boundaries, add controls, and ask the AI Agent to adapt the design to your workload.

Keep exploring

Explore the library
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
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
Web Applicationadvanced

Production-Grade Highly Available Web Platform on AWS

This reference expands the three-tier baseline with a global edge, separate scaling domains, caching, read scaling, and private egress. Secrets management, backup policies, and observability are important additions to design around the visible application path.

Explore the architecture
Two-AZ AWS VPC diagram with a shared public Application Load Balancer, NAT gateways A and B, private application replicas, and RDS Multi-AZ
Getting Startedbasic

Public and Private Subnets in an AWS VPC

This VPC pattern makes exposure and availability decisions explicit. A shared ALB distributes traffic across private application capacity in two zones, each with independent NAT egress. RDS Multi-AZ provides a primary and synchronous standby in private data subnets. Security-group references restrict traffic between tiers; VPC endpoints, flow logs, route-table details, and scaling policies can be added around this baseline.

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