Skip to content

Resource · Guide or article

Design a system that scales to millions of users on AWS

Shows how a generic web service grows from one server to tens of millions of users, one bottleneck at a time, with AWS as the worked platform. The page says AWS details matter mainly if you have that background or the role asks for it, and that most of the principles carry over.

Reviewed

Open the original: Design a system that scales to millions of users on AWS (opens the original site in a new tab)

Practice this topicOpens the practice interviewer in System design mode; choose a question there.

Add to a roadmap

Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.

Source content: English

A worked system design exercise from “The System Design Primer”. Steps: Outline use cases and constraints; Create a high level design; Design core components; Scale the design.

PrepKit overview

PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.

Suited to
The source does not state a level
Format
Guide

What it covers

  • Starts from a single EC2 box running MySQL, with vertical scaling, an Elastic IP, Route 53 DNS and only the needed ports open.
  • Users+ moves static files to S3, the database to RDS, and the system into a VPC with public and private subnets.
  • Users++ adds a load balancer, web servers across availability zones, master-slave failover, a separate application tier and a CDN.
  • Users+++ adds a memory cache, stateless web servers and MySQL read replicas for a 100 to 1 read-heavy load.
  • Users++++ adds autoscaling triggered by CloudWatch metrics, automated DevOps, and monitoring at host, aggregate and log level.
  • Users+++++ targets the assumed 400 writes and 40,000 reads per second with a data warehouse, SQL scaling patterns, NoSQL and queue-based workers.

How to use it

PrepKit study advice, not a claim made by the source.

Draw each stage from memory and name the bottleneck that triggered it. Then take a system you know and explain which stage it resembles and what the next change would be, without naming any AWS product.

Scope and limitations

Heavily AWS-specific: EC2, S3, RDS, ELB, CloudFront, Elasticache, Redshift and DynamoDB, plus named third-party tools whose relevance may have changed. The traffic numbers are the exercise's own assumptions, and the stages illustrate iterative scaling rather than a fixed recipe. There is almost no code.

Access and format

README on GitHub in the donnemartin/system-design-primer repository by Donne Martin, licensed CC BY 4.0. English, free to read online.

Reviewed by PrepKit on Oct 2, 2026. Listing source commit: ae9bbd7b02d9

Evidence behind this overview
  • solutions/system_design/scaling_aws/README.md

Pages that include this

Get the PrepKit newsletter

Optional. You don't need it to use PrepKit.

How we handle your email