All levelsPhoto app · 1

Photo uploads

BeginnerBeta

You're building a photo app. People scroll a feed, open photos and post their own: 1,000 requests per second in all. Right now every photo is stored in the database. Serve every request without going over budget.

Builds on: Load balancing3 stars: serve everyone, keep every component at or below 90%, spend 1 credit or less.

  1. Users1,000 req/s
  2. Edge
  3. App
  4. CacheEmpty
  5. Data

Capacities and costs are game values, not real benchmarks.

Credits 0/4

Photos everywhere

Not tested

Sending traffic through your current setup…

Throughput by requestNot tested
Scroll the feed–700 req/s · needs 100%Open a photo–200 req/s · needs 100%Post a photo–100 req/s · needs 100%
Peak loadNot tested
–Max 90%
CostMet
0 creditsPar 1

Components

App server
2 creditsRuns your code. Comes in three sizes.
2
Size, all 2
1,200 req/s total

Tap one server on the board to size it on its own.

Object storageNo limit
1 creditHolds files such as photos, with no limit. The database keeps a link to each.
0
Load balancer20,000 req/s
2 creditsSpreads requests across your app servers.
Always 1
Database
2 creditsStores your data. Every write goes here.
Always 1
Size
1,000 ops/s