-
Notifications
You must be signed in to change notification settings - Fork 61
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
Handle failures and retries? #12
Comments
Rejecting messages is not implemented in this library. |
The ack message is actually sent by the Consumer class right after call_user_func so there is no proper way for a callback to reject or nack the message expect throw an ugly exception. Solution can be to pass the $msg->delivery_info to the callback action and:
|
I'd like to be able to implement some sort of dead-letter queue if the callback returns false. |
I've created a new PHP library called Mopsy, loosely based on Thumper. It provides functionality for retrying failed messaged based on a configurable threshold, and beyond that republishes the message to a dead-letter exchange. |
cool stuff |
@videlalvaro would you recommend just extending the |
I can't see a way in this library to reject a message in the callback upon some error condition so that RabbitMQ will retry the message.
Am I missing something, or should I be using php-amqplib instead?
The text was updated successfully, but these errors were encountered: