All levelsMusic app · 2
Lyrics partner
IntermediateBetaYour services from Split the monolith are in place. Now your music app shows lyrics while a song plays: 1,500 requests a second, each asking a lyrics partner. The partner allows only 400 calls a second, and you can't buy more. Keep every service at its share without going over budget.
Builds on: API gateway, Services3 stars: serve each kind of request its share, keep every component at or below 90% except servers allowed to slow down, spend 8 credits or less.
- Users3,900 req/s
- Edge
- App
- CacheEmpty
- Data
- External
Capacities and costs are game values, not real benchmarks.
Lyrics launch
Not tested
Sending traffic through your current setup…
- Throughput by requestNot tested
- Play a song–1,800 req/s · needs 100%Search–600 req/s · needs 50%Show lyrics–1,500 req/s · needs 100%
- Peak loadNot tested
- –Max 90%
- CostMet
- 0 creditsPar 8
Components
Playback server
2 creditsRuns playback requests only.
Size, all 4 · mixed now2,100 req/s total
Tap one server on the board to size it on its own.
Search server
2 creditsRuns search requests only.
Size, all 3 · mixed now300 req/s total
Lyrics server
2 creditsRuns lyrics requests only.
Any-request server
2 creditsRuns whatever the load balancer or gateway sends it.
Cache80% hit rate
3 creditsAnswers about 80% of reads from memory.
API gateway20,000 req/s
3 creditsSends each kind of request to its own servers. Takes the load balancer's place.
Database
2 creditsStores your data. Every write goes here.
Size1,000 ops/s
Lyrics partner400 calls/s
0 creditsAnother company's service. You can't add more of it or make it bigger.