Webbased chat in php without using database or file

前端 未结 14 1033
失恋的感觉
失恋的感觉 2021-02-02 14:49

I am trying to implement a realtime chat application using PHP . Is it possible to do it without using a persistent data storage like database or file . Basically what I need is

14条回答
  •  醉酒成梦
    2021-02-02 15:37

    Try looking into socket libraries like ZeroMQ they allow for instant transport of the message, and are quicker than TCP, and is realtime. Their infrastructure allows for instant data send between points A and B, without the data being stored anywhere first (although you can still choose to). Here's a tutorial for a chat client in ZeroMQ

提交回复
热议问题