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.

Menu