How php blocks the program. Swoole . Laravel

such a scenario.
uses swoole as the server
and then An enters the website. Will send an instruction to the server. Then wait for the return.
if B enters the website at this time. Hope to wait. Until A"s command has been returned and a reception has been completed. B"s order was issued.
functions like queues. But the queue is asynchronous. How can we deal with it

Jan.17,2022

you can use locks. Use the swoole global variable to make a state and mark the current processing

.

Global variables refer to Link description


production environment is recommended to use message queue, which is native to swoole. If the service crashes, all unprocessed messages will be lost


use redis as a message queue. There is persistence, will not lose data.

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-1b360b4-2bfe6.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-1b360b4-2bfe6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?