N
N
Newto2021-02-04 21:51:50
PHP
Newto, 2021-02-04 21:51:50

How to send messages from the queue only after the recipient's response?

There is send.php where the message queue is formed.
There is receive.php which receives messages.

How to send another message from send.php only after the response from receive.php?

Example:
There is a certain service that processes some information. When receiving a request for information processing, he needs 10 seconds for this action. After these 10 seconds, the service responds with "ok, done". After sending the first message from send.php, this service starts working. How to send the second message from send.php only after the response of receiver.php "ok, done"?

The question is asked in the context of PHP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Newto, 2021-02-04
@Newto

Seems to have found it. Apparently you need to look towards basic_ack / basic_nack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question