News for hackers. Stuff that matters.
Re:Soketi: Simple, fast and resilient open-source WebSockets... by nesarkvechnep on Friday August 26, 2022 @04:08AM (#32604526)
You use a stack which supports it. Elixir and Erlang support millions of concurrent websocket connections on a single, albeit beefy, server.

https://phoenixframework.org/blog/the-road-to-2-million-webs...

Re:Soketi: Simple, fast and resilient open-source WebSockets... by jamil7 on Friday August 26, 2022 @04:20AM (#32604619)
The library is built on top of uWebsockets which is fairly well-known as being highly optimised and performant, especially if you skip the Node.js wrapper and use the underlying C/C++ lib directly. Does anyone know what tradeoffs or different performance characteristics one would expect to see from e.g. Elixir/Erlang vs uWebsockets?
Re:Soketi: Simple, fast and resilient open-source WebSockets... by nesarkvechnep on Friday August 26, 2022 @04:42AM (#32604737)
Elixir/Erlang are surely slower but the BEAM is a fantastic runtime and compensates with fault-tolerance and predictable performance. I know I prefer my server to be as responsive at 1 million connections as at 1 hundred.
Re:Soketi: Simple, fast and resilient open-source WebSockets... by andy_ppp on Friday August 26, 2022 @10:03AM (#32607693)
How much slower though, I think we’re talking everyone getting the message in a Phoenix channel in < 100ms?
Re:Soketi: Simple, fast and resilient open-source WebSockets... by conradfr on Friday August 26, 2022 @08:35AM (#32606583)
I can't believe this article is 7 years old.