Background jobs (ऐसा काम जो HTTP response को block नहीं करना चाहिए) के लिए, NestJS @nestjs/bullmq के माध्यम से BullMQ (एक Redis-backed queue) के साथ integrate होता है। आप एक queue में jobs add करते हैं और उन्हें अलग workers में asynchronously process करते हैं — जिससे requests fast रहती हैं और heavy या deferred काम reliably handle होता है।
queues किस समस्या को हल करती हैं
Some work is too slow or shouldn't block the request:
✗ sending emails, processing images/video, generating reports, calling slow APIs
→ doing it inline makes the user wait and risks timeouts/failures
✓ QUEUE the work → respond immediately → a worker processes it in the background
