I would like to provide a PHP hanging request that will stay open until new events exists, at which point it will immediately return back JSON encoded data to javascript client.
Connection -> wait for events (check, sleep, check, sleep, etc) -> event is detected -> send events back -> close request.
CPU load is no issue with this configuration, but the amount of RAM required to scale is about 5-10MB per user because each connection requires 1 PHP proc. Is there a way to allow a single PHP process to be used to server more than 1 connection at the same time. Also is it possible to do this without using some type of listening daemon service?