My PHP website program calls the interface of an external website.
When the user inputs data, the PHP program will receive the data, then request the interface of the external website based on the data, obtain the data and return it to the user.
But when multiple users submit data at the same time, PHP will request that interface at the same time, and that interface will return an error.
Now I want to use PHP+Redis to make a queue. The user's request will be placed in the Redis queue and the external interfaces will be queried one by one to avoid the problem of requesting interfaces at the same time.
How to implement it specifically?