FreeReference architectureAWS
AWS 3-tier request flow
In one sentence: Each tier does one job, so each can scale and fail on its own.
Animated diagrams are not available for printing. Get StackKinetic Pro to download this explainer.
Inspect:
Read this explainer as text
Page request
Beginner
- You click a link. Your browser sends a request to the site’s front door.
- The front door, called a load balancer, picks a web server that isn’t busy.
- The web server asks the app server to do the real work.
- The app server looks up your data in the database.
- The database hands the data back.
- The app server turns that data into an answer.
- The answer heads back out through the front door.
- Your page appears. All of that took a fraction of a second.
Practitioner
- The browser sends an HTTPS request to the Application Load Balancer.
- The ALB terminates TLS and routes to a healthy web instance.
- The web tier calls the app tier in a private subnet.
- The app tier queries the database in an isolated data subnet.
- The database returns the result set.
- The app tier builds the response payload.
- The web tier returns it through the ALB.
- The user receives the page. Round trip complete.
Architect
- DNS resolves to the ALB and TLS is negotiated at the edge of the VPC.
- Listener rules and target-group health checks select an instance across zones.
- East-west call on security-group-scoped ports; the app tier has no public route.
- Pooled connections hit the primary; read replicas could absorb read traffic.
- The result returns. This hop is the usual latency and scaling bottleneck.
- The stateless app tier serializes the response; any instance could have served it.
- The response flows back through the ALB on reused keep-alive connections.
- End to end, every tier scaled and failed independently.
Static file
Beginner
- Your browser asks for an image.
- The front door sends the request to a web server.
- The web server already has the file, so nobody bothers the database.
- The image arrives. Short trip, fast answer.
Practitioner
- The browser requests a static asset.
- The ALB routes to a web instance.
- The web tier serves the file directly, skipping the app and data tiers.
- Asset delivered. A CDN would make this trip even shorter.
Architect
- A GET for a static object hits the ALB.
- It is routed to the web target group.
- Served from the web tier; the app and data tiers stay idle.
- A clear candidate for edge caching: offload this path to a CDN.
Now add…
Take it with you
Pro adds video downloads, with embeds and editable source coming soon. Core explainers are always free to watch.