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 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 canvasThree-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.The image links to a fully editable BuildPlane starter.
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
- Web users send HTTPS requests to the public ALB, which selects healthy web capacity in either AZ.
- Both web replicas call the internal ALB, which selects a healthy application instance independently.
- Application instances use the RDS endpoint to read and write the primary; the primary synchronously replicates to the standby.
- 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
Understand the decisions behind this diagram
Use these practical explanations to compare services, failure boundaries, and operating tradeoffs before adapting the architecture.
AWS Fundamentals
What Happens When You Launch an EC2 Instance?
The Launch button hides a surprising amount of coordination. Here is the control-plane story, the data-plane result, and the checks that matter once the instance is running.
Read the guideData
AWS Database Services Compared: RDS, Aurora, DynamoDB, and More
The right AWS database follows from access patterns, consistency, scale, and operations. Start with the data model instead of choosing the newest service.
Read the guideDesign rationale
Decisions that shape this architecture
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.
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.
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
Related AWS architectures

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