Foundatio icon indicating copy to clipboard operation
Foundatio copied to clipboard

Feature Request : Priority Queues

Open Terebi42 opened this issue 3 years ago • 2 comments

It would be very valuable if you could queue items into queues with a priority, and have items pulled from the queue in priority order for processing by jobs.

I currently work around this by having multiple queues, with multiple jobs, but this means that multiple jobs are running simultaneously, which in some cases is not scalable due to resource constraints.

Terebi42 avatar Jan 20 '22 16:01 Terebi42

That's really not possible with pretty much any queuing system. You end up having to do exactly what you are doing. Routing the messages to a dedicated high priority queue.

ejsmith avatar Jan 20 '22 19:01 ejsmith

Would it be possible to give a job a list of queues (of the same type), so that it tried to pop off each of them, but only one would be able to get processed at any given time (because there is only one job task running)

Terebi42 avatar Jan 20 '22 20:01 Terebi42