jQuery PHP MySQL Chat Doubts
Posted: Sun Feb 12, 2012 11:53 pm
Hi there,
I'm creating a live chat script, something like Zopim, and for now the way i retrieve messages is using jQuery Ajax request loops every 'n' second, it works very good, but yeah, when we look at the apache access log we get tons of messages from the script, is this a bad thing ?
I know how to do long polling request, but i don't like this method, although it is effective, it is defective lol, sometimes it crashes apache, and it creates a process for every user that is using the chat, so i'm not going to use this method.
Another one is using services like Pusher.com for use HTML5 WebSockets, i'm testing this and i really like it, but if the Pusher website goes down the script itself doesn't work...
What do you guys recommend me to do, since this script is to be selled.
I'm creating a live chat script, something like Zopim, and for now the way i retrieve messages is using jQuery Ajax request loops every 'n' second, it works very good, but yeah, when we look at the apache access log we get tons of messages from the script, is this a bad thing ?
I know how to do long polling request, but i don't like this method, although it is effective, it is defective lol, sometimes it crashes apache, and it creates a process for every user that is using the chat, so i'm not going to use this method.
Another one is using services like Pusher.com for use HTML5 WebSockets, i'm testing this and i really like it, but if the Pusher website goes down the script itself doesn't work...
What do you guys recommend me to do, since this script is to be selled.