Decision 1
Redis BRPOP instead of a polling worker
- Problem
- Workers need to pick up jobs immediately without burning CPU while idle.
- Options
- A sleep-poll loop
- A blocking
brpopon a Redis list
- Decision
- Workers block on
brpop, and the API creates the job and returns its status immediately. - Result
- No CPU burn between jobs, FIFO ordering, and scaling out is just more worker containers.
- Trade-off
- A plain Redis list has no built-in acknowledgement, so a crashed worker needs a watchdog to re-queue its job.


