PHP connection RabbitMQ delay is a little big, three or four hundred milliseconds, is there any scientific way?

use php-amqplib to connect to
rabbitmq server remotely, regardless of network latency, each connection will cost at least 400ms, which is too slow. If it takes more than 200 ms, to execute a php connection to the local rabbitmq on the server side, and then opens and closes the connection continuously after each send, it will be reduced to more than 100 ms.
is this the speed of all rabbitmq connections?
how does PHP interact with message queues in general? PHP direct new AMQPStreamConnection to create a connection to send? You can still add a cache in the middle, for example, php is first written to redis, and then published to the rabbitmq message queue with a background mechanism, but it feels like taking off your pants and farting many times.

Feb.16,2022

connection sending time is not calculated in this way. Try to get the current time before and after the connection is sent, and then subtract it to get the real processing time. If it really takes a lot of time, you should see if there is a problem with mq .
it is superfluous to write redis and then send mq .

  • Php rabbitmq callback

    problem description if you need to change the business logic in a callback that has written a consumer logic, you must rerun the consumer in order to execute the changed business logic correctly. Is there any way to execute the modified business logic...

    May.04,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be53ef-3177f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be53ef-3177f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?