Hi Saurabh-

In general, you want the application handling the retry delay. When the broker 
does it, it can impede the queue or lead to hard to troubleshoot issues when 
you have more than one instance of an app connected to a queue.

I suggest reviewing the client settings available in STOMP.js, and then 
building in the simple redelivery delay logic you want into your app code. This 
would allow you to readily configure it if it needs to be changed, and test it 
to make sure it works how you want without having to modify any broker settings.

Ref: https://stomp-js.github.io/guide/stompjs/using-stompjs-v5.html

Hope this helps!

Thanks,
Matt Pavlovich

> On Nov 14, 2023, at 11:55 AM, Saurabh Singh <singhsaurabh1622...@gmail.com> 
> wrote:
> 
> Hello Team,
> I need support for activeMq implementation via STOMP protocol in my node
> js. Project.
> 
> I have gone through the documentation some of the points are clear but need
> clearance and support on one point.
> 
> In my project I have many queues, and I want to configure maxRetryCount
> and delayed-redelivery for messages on failure based on queue configuration
> means dynamically for one queue different and second queue different and so
> on. So how should I configure not sure.
> 
> Example - let's say I have posted a message in a queue, and processing of
> that message is failed in first attempt, then I want to increase the delay
> for that message and after that delay the message should polled from queue
> automatically and should process again.
> 
> How can I achieve this functionality? Can anyone please help on this?
> 
> Thanks in advance.
> 
> 
> 
> Regards,
> Saurabh Singh
> Software Engineer

Reply via email to