-
Notifications
You must be signed in to change notification settings - Fork 799
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
pubsub/rabbit: pass requeue: false into amqpChannel.Nack #2952
Comments
If you don't want the message to be redelivered, just That is what the sample code in the article you linked to do does -- it acks the message from |
that's exactly what I'm doing here https://github.com/chrislusf/seaweedfs/blob/master/weed/replication/sub/notification_gocdk_pub_sub.go#L51 But by default
https://github.com/streadway/amqp/blob/e6b33f460591b0acb2f13b04ef9cf493720ffe17/delivery.go#L157 I want on the first failure try |
@vangent I found a not very good article on golang, this one is better but on ruby this original article https://www.rabbitmq.com/dlx.html |
I'm still not sure I understand exactly what you are trying to do, but if you want different behavior from You can always use the If you think there's a way to make this work using an |
At least in the interface, you can implement the function message.Reject() |
The And sorry, I shouldn't have called it an interface, as it's a concrete type: |
And how, for different types, is the re-placing of a message in the queue through DLX.RetryExchange? In a specific case for type RabbitMQ, your interface is not working, where the FIFO principle is used. It turns out more harm than good from Naсk with requeue is true |
The semantics for
It sounds like RabbitMQ has some mechanism for automatically adding nacked messages to a separate queue that Go CDK does not support because of the way we call HTH |
Yes I just use a) thanks |
Sounds good. To be clear though, c) does not require touching anything other than the Rabbit driver. For example, it would be possible to make |
I cannot configure RabbitMQ delay retry/schedule with Dead Letter Exchange without pass requeue: false to reject in DLX
https://medium.com/@kiennguyen88/rabbitmq-delay-retry-schedule-with-dead-letter-exchange-31fb25a440fc
go-cloud/pubsub/rabbitpubsub/amqp.go
Line 110 in cb748bb
And gets flag redelivered true
The text was updated successfully, but these errors were encountered: