Skip to content

Perform at least once delivery when rejecting with requeue #1165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

dgafka
Copy link
Contributor

@dgafka dgafka commented Apr 28, 2021

During rejection with requeue there is possibility for losing message.
The scenario may happen, if after acknowledge we will lose connection.
In that case, message will not be redelivered and original message will be lost.

Given solution performs redelivery first and then perform the acknowledge.
In the scenario with losing the connection in between, the message will be delivered twice instead of being lost.
This work in "at least once delivery" manner, just like RabbitMQ.

@makasim makasim merged commit 5668b30 into php-enqueue:master Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants