web based chat application
<p>hii.. i am designing a chat application. i have tried using php + MySQL + JavaScript and developed the web based chat app. But the application is quite slow. What all i do is, just store the messages from the clients in a table, and each client retrieves the table at a lag of 2 seconds.... I manage this by ajax. 
But the app response becomes very bad when many user joins. 
Is their any other technique to build the chat app ??? or what else i can do to make my app better. 
help plzz .. 
thanks in advance :) </p>
