Php uses redis subscription, how to return data in real time on the subscribe front-end page of web execution?

I have read some redis subscription articles that talk about using subscriptions in the command exercise. Are those real-time message notifications implemented by Ajax polling? Since subscribe monopolizes the connection blocking mode, it must no longer be executed on the page, so what exactly is the application scenario? Is it possible that subscription messages can only be viewed on the redis client command line?

Aug.23,2021

websocket find out.


laravel can use redis+socket.io to push messages in real time

Menu