Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on PHP 7 Virtual Machine. Parent comment
But you could use something like websocketd, which spawns a process of your chioce for each client and pipes the websocket to stdin and vice versa.
https://github.com/joewalnes/websocketd
Each PHP process looks like it takes about 5 MB of ram on my laptop, so probably not the best method for 5000+ concurrent users if you use PHP, but still.
There are no comments on this comment yet.
But you could use something like websocketd, which spawns a process of your chioce for each client and pipes the websocket to stdin and vice versa.
https://github.com/joewalnes/websocketd
Each PHP process looks like it takes about 5 MB of ram on my laptop, so probably not the best method for 5000+ concurrent users if you use PHP, but still.