Hello. I am trying to write a queue on rabbitmq. On all the tutorials that I watched, everything works as follows:
- There is a code (the sender) that sends the message to the Rabbit queue and ends immediately.
- There is a code (recipient) that works by constantly listening to the queue in order to pick up a message from it. After HE receives a message from the queue, it is possible to give a message to the rabbit that he received it. And then rabbit will remove it from the queue. In this case, the recipient does not know whether the message was delivered or not (it was simply removed from the queue).
But this is not enough for me. I need the sender to know that the message has been delivered.
That is, I will try to give an example.
The sender queues two messages:
- "Hello"
- "until"
The recipient received the message and replies:
- "Hi ok"
- "not yet ok"
Tell me, can this be realized somehow?