Priority with fairness

  • Build
  • Queue 17

Difficulty 3 of 5

Paid and free callers each submit 15 one-second jobs per second for one minute. Give paid jobs priority 2 and free jobs priority 0. Keep paid lag below five seconds, preserve a service share for free jobs, and finish free work within 110 seconds.

Play level

Users15 req/sUsers15 req/sWorker1 vCPU · 1 GB
Users15 req/sUsers15 req/sWorker1 vCPU · 1 GB
The board at the start of the level
A queue between two speedsDrag or use arrow keys to change the workers

4 workers · 3 jobs waiting · wait 33 ms

Goals and limits

Queue lag (Paid)
under 5 s
Queue lag (Free)
under 50 s
Completion time (Free)
under 110 s
Lost writes
none
Monthly cost
under 100 USD/mo
Parts you can add
Message broker, Managed queue
Part limit
16

Concepts

How players did

Player results load from the server.