When a user places an order, how can PHP provide real-time reminders in the background?
怪我咯
怪我咯 2017-07-03 11:40:53
0
3
1455

Ajax polling obviously won't work, which will put a lot of pressure on the server, so I would like to ask if there is a better method that can run normally in a big data environment

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
刘奇

You can use node to create a message push service based on socket.io.

刘奇

Use Server Push, such as websocket.

For PHP, it can be combined with other languages, or it can be implemented using Workerman or Swoole.

Peter_Zhu

Websocket is pushed directly to the client

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template