Closed gor181 closed 4 years ago
@gor181 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@gor181 Thank you for signing the Contributor License Agreement!
Thank you!
Quorum queues with redelivery limit are worth mentioning here.
Proposed Changes
👋
Why: Various companies are using RMQ with third party software which doesn't offer the ability to alter the source code related to how the STOMP consumer behaves on the frame level, e.g. there's no possibility to actually change the frame
requeue
header tofalse
as the frame is created by the 3rd party software.This has proven to be an issue on a project I have been working on as the current stomp plugin frame
requeue
implementation defaults totrue
if therequeue
header doesn't exist on the frame. The side-effect of this behaviour is that we ended in a loop of massive re-deliveries as the messages were always re-queued, while, what we wanted was to avoid re-queueing.In order to get around this issue, we decided to expose the
stomp.default_nack_requeue
configuration option which would serve as a default for therequeue
frame option.This PR tries to:
stomp.default_nack_requeue
option which overrides the default framerequeue
valueSide-effects:
Types of Changes
What types of changes does your code introduce to this project? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask on the mailing list. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CONTRIBUTING.md
documentFurther Comments
When running tests locally I get the following errors (regardless whether I'm on this branch or on rabbitmq-stomp master branch):
I have been running:
What I can confirm is that the functionality works when the plugin is released with
make dist
.TODO