Skip to content

Tag: queue

How to implement a synchronous job queue in Spring?

I’m trying to find out how to implement a job queue using Spring. I’ve got a server up and running that I plan to have users submit POST requests to. This will take in some data and will then queue jobs to process this data. The processing of this data is an expensive process that can sometimes ta…

Re-creating a queue afters its manually deleted RabbitMQ

Is it possible to automatically re-create a queue afters it has been manually removed? I’m able to create the queue on start up using However, if it’s manually removed from rabbitmq, I want to be able to create a queue with the same name automatically. Today if I remove it, I will keep throwing ex…

How to take items from queue in chunks?

I have mulitple producer threads that add objects to a shared queue concurrently. I want to create a singlethread consumer that reads from that shared queue for further data processing (database batch insert). Problem: I want to only take the data from the queue in chunks for better performance during batch i…