Reputation: 221
Is there any event provided by RabbitMQ or by some plugins which will "fired" when consumer acked message? The result of event for example can be message to specific queue or webhook. Any solutions or recomendations?
Expected scenario: there is a queue with messages for client app
- app consumes message from this queue
- app sends lightweight AMQP ack
packet
- server receives ack
- server calls some sort of callback (webhook)
Upvotes: 1
Views: 217
Reputation: 3262
This can be easily achieved from the consumer side as well , when you ack
the message from the consumer , call the external webhook from the consumer itself. The message body can carry the webhook URL which can then be parsed at the consumer side , this way you will have the flexibility to pass in parameters specific to the message.
Upvotes: 2