Using memcached as a database buffer for chat messages

后端 未结 2 1250
不思量自难忘°
不思量自难忘° 2020-12-09 23:03

I am playing around with building a chat application using PHP and CodeIgniter.

For this, I am implementing a cache \'buffer\' with memcached to hold the most recent

2条回答
  •  囚心锁ツ
    2020-12-09 23:18

    Have you looked into HTML5 socket connections? With a socket server, you do not need to store anything. The server receives a message from one subscriber, and immediately sends it back out to the correct subscribers. I have not done this myself using HTML5, but I know the functionality now exists. I have done this before using Flash which also supports socket conenctions.

提交回复
热议问题