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
You can use node to create a message push service based on socket.io.
Use
Server Push
, such aswebsocket
.For PHP, it can be combined with other languages, or it can be implemented using Workerman or Swoole.
Websocket is pushed directly to the client