Cloud & DevOps
Scalable sites on AWS
CDN, load balancer, autoscaling, caching and the database – a site architecture that survives traffic.
Article
We take the pierogi shop's portal through five stages of growth – from a single machine to an architecture for millions of users. CloudFront and S3 for static files, a stateless API on ECS Fargate behind an Application Load Balancer in three Availability Zones, Aurora with read replicas, ElastiCache (Valkey) as a cache, SQS for background work, autoscaling policies and costs. Everything as AWS CDK in TypeScript.
Related articles
- Observability and cost on AWS – CloudWatch, OpenTelemetry and X-Ray, alarms, dashboards, budgets, anomaly detection and tags
The pierogi shop's portal runs across several zones and scales itself – yet one Friday at 7 p.m. it returned errors for fifteen minutes without anyone noticing, and the monthly bill doubled. We…
- PoC, spike, prototype, MVP – how to plan and run a PoC (with a working example)
How a spike, a PoC, a prototype, an MVP and a pilot differ, when a PoC is really needed and how to run one: a hypothesis, measurable success criteria, a timebox, a scope cut, a plan, a report and a…
Around the topic
- A Beginner's Guide to Scaling to 11M+ Users on Amazon's AWS article · web · @highscal
- AWS Well-Architected Framework - AWS Well-Architected Framework article · web · AWS Well-Architected Framework
- Caching challenges and strategies | AWS Builder Center article · web · Amazon Builders' Library
- Static stability using Availability Zones | AWS Builder Center article · web · Amazon Builders' Library
- Implementing health checks | AWS Builder Center article · web · Amazon Builders' Library
- Cache-Aside Pattern article · web · Microsoft Azure Architecture Center
- Scalability, Availability, and Stability Patterns presentation · web · Jonas Bonér
- binhnguyennus/awesome-scalability repo · github · binhnguyennus
- Step by Step Basic Microservices System (3 NodeJS + 1 Load Balancer containers) with Docker Compose video · youtube · Hussein Nasser
- Ensuring SCALABILITY Using MICROSERVICES video · youtube · Modern Software Engineering
- "Web Scalability for Startup Engineers" by Artur Ejsmont (Part 1) podcast · apple-podcasts · Book Overflow
- Using Kafka-Leader-Election to Improve Scalability and Performance podcast · apple-podcasts · Confluent Developer ft. Tim Berglund, Adi Polak & Viktor Gamov
- The art of scalability book · openlibrary · Martin L. Abbott
- Web scalability for startup engineers book · openlibrary · Artur Ejsmont