બેકગ્રાઉન્ડ જોબ્સ (એવું કાર્ય જે HTTP રેસ્પોન્સને બ્લોક ન કરે) માટે, NestJS BullMQ (એક Redis-બેકড કયુ) સાથે @nestjs/bullmq દ્વારા ઇન્ટિગ્રેટ થાય છે. તમે કયુમાં જોબ્સ ઉમેરો છો અને તેમને અલગ વર્કર્સમાં અસિંક્રોનસલી પ્રોસેસ કરો છો — જે રિક્વેસ્ટ્સને ઝડપી રાખે છે અને ભારે અથવા ડિફર્ડ કાર્યને વિશ્વસનીયતાથી હેન્ડલ કરે છે.
કયુ કયો સમસ્યા હલ કરે છે
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
