1
votes

Is there a way in Apache ActiveMQ 5.x to specify what happens with messages, when the queue limit is reached? I am looking for something similar to TIBCO EMS's overflow policy, where you discard old messages to pick up new ones. The closest thing I found in the docs, was the Producer Flow Control to slow down producers.

1
It's not clear from your question which version of Apache ActiveMQ you're using, but if you're using ActiveMQ Artemis then check out the address-full-policy address-setting. It can be set to PAGE, BLOCK, or FAIL. The ring queue functionality may also be of interest. - Justin Bertram

1 Answers

1
votes

The question isn't specific enough so hard to give concrete advice. The ActiveMQ 5.x broker has strategies for dealing with slow consumers or fast producers but they depend a bit on the domain (Topic or Queue).

ActiveMQ Artemis has other features like paging and other strategies that can help.