News for hackers. Stuff that matters.
Re:The Hidden Complexity of Scaling WebSockets by pk-protect-ai on Saturday January 25, 2025 @03:46AM (#42820414)
I agree here. I have had an experience of scaling WebSockets server to 20M connections on a single server (with this one https://github.com/ITpC/LAppS.git). However there are several issues with scaling WebSockets, on the backends as well: mutex locking, non-parallel XOR of input stream, utf8 validation. I do not know the state of the above repository code, it seems that it was never updated for at least 5 years. There were bugs in HTTP parsing in the client part for some cases. Though vertical scalability was excellent. Sad this thing never reached production state.
Re:The Hidden Complexity of Scaling WebSockets by klabb3 on Saturday January 25, 2025 @07:49AM (#42821329)
> non-parallel XOR of input stream

I remember this one in particular making me upset, simply because of another extra buffer pass for security reasons that I believe are only to prevent proxies doing shit they never should have done in the first place?