I want to implement a chat system for my site. Functionality will be very similar to facebook chat. Chats will be individual.
I know how to create a chat system using PHP, MySql and using jQuery. But I am worried that it will not scale for a large number of users in the long run.
Using jQuery, I will make requests every second to update the chat window or if the user sends a request in the chat with another user. This will cause additional load on the server, as the user base will increase the overtime.
I was told using PHP because it is not an ideal solution that I should learn comet programming that I have never tried before.
My question is, are there any pre-build structures that I could use, or a better approach to creating it?
I heard about NodeJs and APE, but they are not supported by my server.
Thanks guys.
EDIT: after I talk to the guys from my server, I can change my OS so that I can run NodeJS. How well is nodejs a scalability term and will it satisfy my needs?
source share