All levelsMusic app · 4
Recommendations
IntermediateBetaYour event stream from Play counts is in place. Now likes and skips count too, 4 events per play, 7,200 a second, and a new Recommendations group must read every one of them, as Analytics does. Keep every service at its share without going over budget.
Builds on: Event streams3 stars: serve each kind of request its share, keep every component at or below 90% except servers allowed to slow down, spend 11 credits or less.
- Users3,900 req/s
- Edge
- App
- Async
- Cache
- Data
- External
Capacities and costs are game values, not real benchmarks.
Recommendations
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 11
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.
Size, all 31,800 req/s total
Any-request server
2 creditsRuns whatever the load balancer or gateway sends it.
Event stream
2 creditsKeeps every event in order. Each group of processors reads all of them; partitions set how many in a group can read at once.
Size4 partitions
One stream is enough: every group reads all of it.
Analytics processor1,250 events/s each
1 creditReads every event for analytics.
Recommendations processor1,250 events/s each
1 creditReads every event for recommendations.
API gateway20,000 req/s
3 creditsSends each kind of request to its own servers. Takes the load balancer's place.
Cache80% hit rate
3 creditsAnswers about 80% of reads from memory.
Database
2 creditsStores your data. Every write goes here.
Size500 ops/s
Lyrics partner400 calls/s
0 creditsAnother company's service. You can't add more of it or make it bigger.