开发者

Live chat using AJAX

开发者 https://www.devze.com 2023-03-15 13:26 出处:网络
Hello everyone I just wanted to know if I use AJAX for my chat engine, will it crash my server or it will work fine for a traffic of about 1500 people at a time ??

Hello everyone I just wanted to know if I use AJAX for my chat engine, will it crash my server or it will work fine for a traffic of about 1500 people at a time ??

Also suggest me some way to make automatic ajax request to update the contents of chat box. How much delay between consecutive 开发者_如何学Goquery should be set so that it doesn't cause my server to overload ???

Thanks in advance :) :)


Depending on your requirements, you might want to look into WebSockets. At a local hacknight, we produced a simple chat system pretty quickly using http://faye.jcoglan.com/. It's a pub sub service that you can use javascript on the client side to subscribe to a specific channel. Then it's just a matter of coding the front end to work with the input and output.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号