Using memcached as a database buffer for chat messages

大兔子大兔子 提交于 2019-11-28 09:28:14

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.

Why don't use INSERT DELAYED ? It offers you almost the same functionality you are trying to achieve without the need of memcached.

Anyway your solution looks good, too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!