I'm developing a PHP site, and using Long Polling techniques for real-time notifications.
I'm getting the script to wait 50 seconds for a response, and not getting one, in 2 seconds it asks again, to give greater turnover of connections, as the big sites do.
I have already tested some active connections on my machine, opening different tabs and browsers at the same time, and each opens a different process on the server.
The doubts are as follows:
1 - is each such process an active user?
2 - Does this method pull too much of the server's capabilities if you have a lot of active users?
I ask this because the hosting only releases me space for up to 30 active users at the same time, and if that is the case, I will need something that goes well beyond that.