Log or queue
Difficulty 2 of 5
After a code change, analytics must replay 100,000 saved events within 10 s. Separately, 100 image jobs take 1 s each and must all finish within 20 s, with no lost job. Choose the design.
Options
- Use work queues for both
- Log for events; call the image worker directly
- Log for events; work queue for image jobs
Goals and limits
- Replay time
- under 10 s
- Completion time (Jobs)
- under 20 s
- Lost writes
- none
- Monthly cost
- under 200 USD/mo
Concepts
How players did
Player results load from the server.