8
I’m developing a site in PHP, and using Long Polling techniques for real-time notifications.
I’m making the script wait 50 seconds for an answer, and not getting one, in 2 seconds it comes back to ask, to give greater rotation of connections, as the big sites do.
I have tested with some active connections on my machine, opening different tabs and browsers at the same time, and each one opens a different process on the server
The doubts are as follows:
- each process of this is equivalent to an active user?
- this method pulls much of the server’s capabilities if it has many active users?
I ask this because hosting only allows me space for up to 30 active users at the same time, and if that’s what it is, I’m going to need something that works better than that.
Got it... anyway using PHP I run this risk right. I think I’d really have to use some other method of Websocket
– Isaias Lima
@Isaiaslima Yes, there are other things that adapt better to this type of programming than PHP.
– Miguel Mesquita Alfaiate