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.
精彩评论