Background jobs (HTTP response लाई block गर्नु हुँदैन ऐसो काम) को लागि, NestJS ले BullMQ (एक Redis-backed queue) सँग @nestjs/bullmq मार्फत integrate गर्छ। तपाईंले queue मा jobs थप गर्नुहुन्छ र तिनलाई अलग workers मा asynchronously process गर्नुहुन्छ — requests को गति राखिरहन्छ र भारी वा deferred काम को विश्वसनीयता संग हेर्नुहुन्छ।
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
