All levelsPhoto app · 3
Thumbnails
BeginnerBetaYour 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.
- Users8,800 req/s
- Edge
- App
- AsyncEmpty
- CacheEmpty
- Data
Capacities and costs are game values, not real benchmarks.
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.
Size, all 4 · mixed now1,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.
Worker
2 creditsTakes jobs from the queue and does them in batches. Comes in three sizes.
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
Object storageNo limit
1 creditHolds files such as photos, with no limit. The database keeps a link to each.
CDN90% hit rate
3 creditsAnswers most photo and file views from servers near your users.