Webbased chat in php without using database or file

前端 未结 14 1037
失恋的感觉
失恋的感觉 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:27

    Is it possible to do it without using a persistent data storage like database or file?

    It is possible but you shouldn't use. Database or file based doesn't slows down chat. It will be giving additional security to your chat application. You can make web based chat using ajax and sockets without persistent data.

    You should see following posts:

    1. Is database based chat room bad idea?
    2. Will polling from a SQL DB instead of a file for chat application increase performance?
    3. Using memcached as a database buffer for chat messages
    4. persistent data in php question
    5. https://stackoverflow.com/questions/6569754/how-can-i-develop-social-network-chat-without-using-a-database-for-storing-the-c
    6. File vs database for storage efficiency in chat app

提交回复
热议问题