All levelsPhoto app · 3

Thumbnails

BeginnerBeta

Your CDN from Viral image post is in place. Now every new photo needs three smaller sizes for the feed, and resizing an image is slow. Right now each post waits while its server resizes it. Serve every request without going over budget.

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

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

Capacities and costs are game values, not real benchmarks.

Credits 0/5

Slow posts

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 2

Components

App server
2 creditsRuns your code. Comes in three sizes.
4
Size, all 4 · mixed now
1,800 req/s total

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

QueueNo limit
1 creditHolds slow jobs so a request can answer now and the work happens later.
0
Worker
2 creditsTakes jobs from the queue and does them in batches. Comes in three sizes.
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
CDN90% hit rate
3 creditsAnswers most photo and file views from servers near your users.
Always 1