Problems / Cloud and cost, easy
After last year’s outage someone set the fleet’s minimum to 20 instances. Traffic needs about 4. The bill shows it.
Unlock it once for 10 credits; everything inside it is free (runs, changes, Submit, results, hints). Sign in with Google to start; new accounts get free credits.
Keep success at 99% or more and the monthly cost under $1,700.
Like a coding problem, a solution has to pass every case, not just the one it was built for. Submit in the lab runs all 5; 2 of them are hidden until then.
150 requests a second for 300 seconds: 100% web (reads).
What each component does in this design, and what calls it. The simulator mimics each one from these settings.
| Component | Its job here | Settings |
|---|---|---|
| Application Load BalancerLoad balancer | Traffic enters here.Calls Web fleet (EC2 Auto Scaling).Layer 4 balancers route by IP and port; layer 7 balancers read HTTP and can route by path or header. | – |
| Web fleet (EC2 Auto Scaling)Autoscaling group | Application Load Balancer forwards to it.Calls Aurora Postgres.Autoscalers add instances when a metric stays high, but new instances take minutes to be ready. | 200 slots · 20–24 instances |
| Aurora PostgresSQL database | Web fleet (EC2 Auto Scaling) calls it.Postgres runs one process per connection, which is why poolers like PgBouncer sit in front of busy databases. | 16 vCPU · 300 connections |