search

Home  >  Q&A  >  body text

When a user places an order, how can PHP provide real-time reminders in the background?

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

怪我咯怪我咯2786 days ago1505

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-07-03 11:42:53

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

    reply
    0
  • 怪我咯

    怪我咯2017-07-03 11:42:53

    Use Server Push, such as websocket.

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-07-03 11:42:53

    Websocket is pushed directly to the client

    reply
    0
  • Cancelreply