NestJS · Senior · Question 31 of 75
How should BullMQ workers in Nest be deployed under load?
- ✓Correct answer: As separate processes or deployments from the HTTP API, scaled by queue depth, with concurrency limits and graceful shutdown
- 2Only one worker for the whole system
- 3Inside every HTTP pod with unlimited concurrency
Explanation
Separating workers keeps slow jobs from hurting API latency and lets each part scale on its own metric.