Reputation: 65266
I have a message a want to dequeue then right after its dequeued I want to queue another message to a different queue. I want to do all this in the same transaction. is this possible with rabbitmq or any other queueing service?
Upvotes: 0
Views: 145
Reputation: 3185
The closest you can get to what you want with RabbitMQ is:
Use acks and publisher confirms
ack
it. confirm
from the broker.confirm
had arrived, ack
initial message.But then, consider this failure situation:
Initial message received
Reply message sent
Your service failed before ACKing initial message
When your service is back, it will receive the initial message again
So you will need to use some deduplication mechanism etc.
Upvotes: 1