You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
How to use noack false parameter, forcing use of ack=true only after message processing?
My consumption is simple, I'm doing it like this:
@RabbitSubscribe({
exchange: 'exchange',
routingKey: 'create_payment_key',
queue: 'payment_queue',
})
Since it is not provided we can always reject a message and send it back to the queue. This way it'll be re-queued and not lost. I believe this solution works or am I forgetting something?
Hello,
How to use noack false parameter, forcing use of ack=true only after message processing?
My consumption is simple, I'm doing it like this:
@RabbitSubscribe({
exchange: 'exchange',
routingKey: 'create_payment_key',
queue: 'payment_queue',
})
public async consumer(msg: {}) {
const content = JSON.stringify(msg);
console.log(content);
}
Thanks.
The text was updated successfully, but these errors were encountered: