Skip to content
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

RabbitMq Ack, Nack #971

Closed
conioX opened this issue Feb 16, 2025 · 4 comments
Closed

RabbitMq Ack, Nack #971

conioX opened this issue Feb 16, 2025 · 4 comments
Labels

Comments

@conioX
Copy link

conioX commented Feb 16, 2025

you can tell KrakenD to reinject the message (Nack) to retry the message later by any other worker. Notice that when working with Nack, if KrakenD is the only consumer and your backend fails to process the message continously, KrakenD will reinsert the message into the queue over and over

Hi I create consumer with RabbitMq and krakend, but if we create consumer with RabbitMq we can tell return ack, nack discard or nack requeue

How to tell krakend when we want nack discard or nack requeue?

@thedae
Copy link
Member

thedae commented Feb 17, 2025

Hi @conioX , if I'm following correctly, you're looking for a way to configure Krakend NACK strategy, right?

If that's the case, the current solution does not provide a way to customize the NACK behavior, you can only play with the auto_ack option in order to requeue a message on failure or always ACK regardless the outcome of the message consumption

@thedae thedae closed this as completed Feb 17, 2025
@taniaelysia42
Copy link

yeah @thedae i try to implement https://www.krakend.io/docs/async/

so if my endpoint is return 200-299 it will ack? other will nack requeue?

because in rabbitmq as far i know we can NACK Discard and NACK Requeue not just requeue

@thedae
Copy link
Member

thedae commented Feb 17, 2025

so if my endpoint is return 200-299 it will ack? other will nack requeue?

That's correct

because in rabbitmq as far i know we can NACK Discard and NACK Requeue not just requeue

Yes, I understand this can be achieved in RabbitMq, the point here is that the current AMQP integration in Krakend does not allow to select between Nack discard/requeue,

@thedae
Copy link
Member

thedae commented Feb 18, 2025

In any case, thanks @taniaelysia42 and @conioX for the feedback, I'm closing this issue as it won't fix at this moment, but we're going to discuss it internally and evaluate if we want to introduce this feature in future releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants