Għal background jobs (xogħol li m'għandux jwaqqaf ir-rispons ta' HTTP), NestJS jintegra ma' BullMQ (queue bbaskata fuq Redis) permezz ta' @nestjs/bullmq. Inti tżid jobs għal queue u tipproċessahom b'mod asinkronu f'workers separati — iżomm ir-requests veloċi u timmaniġġja xogħol ħamiem jew differit b'mod affidabbli.
Il-problema li l-queues isolvu
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
