prisma-queue icon indicating copy to clipboard operation
prisma-queue copied to clipboard

Q: How to best organize queues?

Open juni0r opened this issue 1 year ago • 0 comments

Hi,

I'm using prisma-queue in my current project to great delight. Thanks for sharing this! 🚀

I was wondering how to best organize my queues. Since the handler is typed to a certain type of Job, it would seem that I have to either create a separate queue for each job type or create a generic job type that handles different tasks.

Say, for instance, you want to have a priority queue for sending emails and another one for all other jobs. How would you set this up?

juni0r avatar Feb 05 '24 14:02 juni0r