All levelsPhoto app · 1
Photo uploads
BeginnerBetaYou'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.
- Users1,000 req/s
- Edge
- App
- CacheEmpty
- Data
Capacities and costs are game values, not real benchmarks.
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.
Size, all 21,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.
Load balancer20,000 req/s
2 creditsSpreads requests across your app servers.
Database
2 creditsStores your data. Every write goes here.
Size1,000 ops/s