Open rahul-rocket opened 3 months ago
By following these steps, you create an abstract solution for job queue management in your application:
This approach allows you to easily switch between different job queue implementations (such as Bull, Trigger.dev, or others) without tightly coupling your application to a specific library, promoting modularity and flexibility.
Integrate "Job Queue" management into the Gauzy API. Utilize Redis for efficient job processing in production environments, with an in-memory fallback for local development scenarios. Additionally, abstract the job queue implementation to allow flexibility in choosing between Bull, Trigger.dev, or other libraries, and organize implementations into separate packages.
References:
NestJS Queues Documentation Trigger.dev Documentation
Notes: