Im working on a page with a chat and some other things. These things MUST be updated every one to two seconds from my database. I tried to do this with an ajax load.
function autoRefresh_div(){
$("#chats").load("chats.php");
}
But yesterday we had about 100+ people on the site and each of them is loading the chat and all other stuff every second. To make it short - it crashed the webserver and we had about 50GB http-traffic in less than 30min.
Is there any other way to load my chat and all other things? Maybe iframe?