There is an online chat on ajax, which is implemented through long polling.
I would like to know how the server works at all.
For example, we have ~ 50 users online in a chat, and a request to the server is sent from each user to the server, how does one script process (i.e. wait for new messages in the database) for 50 clients?
Is there a separate thread for each request?
If anyone has any links to this info - skinte, I will be grateful.