All levelsPhoto app · 2

Viral image post

BeginnerBeta

Your photos are in object storage from Photo uploads. Now one photo went viral: 8,000 people a second are opening it, on top of the feed and new posts. Serve every request without going over budget.

Builds on: Object storage3 stars: serve everyone, keep every component at or below 90%, spend 5 credits or less.

  1. Users8,800 req/s
  2. Edge
  3. App
  4. CacheEmpty
  5. Data

Capacities and costs are game values, not real benchmarks.

Credits 0/8

Gone viral

Not tested

Sending traffic through your current setup…

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

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.

CDN90% hit rate
3 creditsAnswers most photo and file views from servers near your users.
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
Object storageNo limit
1 creditHolds files such as photos, with no limit. The database keeps a link to each.
Always 1