3 ms·
LiveView at 2 million clients on 40core/128gb box, limited by ulimit: https://www.phoenixframework.org/blog/the-road-to-2-million-websocket-connections https://
by dustingetz 3y ago
LiveView at 2 million clients on 40core/128gb box, limited by ulimit:
https://www.phoenixframework.org/blog/the-road-to-2-million-websocket-connections https://www.phoenixframework.org/blog/the-road-to-2-million-...
discord uses websockets, here are some more links: https://www.reddit.com/r/elixir/comments/pophiz/server_specs_for_liveview/ https://www.reddit.com/r/elixir/comments/pophiz/server_specs...
we'll have seamless reconnect soon, which means the ws connections can actually drop when inactive (no heartbeats!) and then reconnect when the client wants something, so the forum use case should be quite fine. Not everything needs to be realtime server push, so refactor your code so that queries run on page nav or something. Electric is network transparent but that doesn't mean the network is opaque, the reactivity graph is in userland control (as declared by your AST) and the network data flow is implied by that same AST, same reactivity graph!
- kaba0 3y agoIt makes sense for a real time chat program, especially with voice chat. Not really for a mostly-static, reddit-like client.
- deleted 3y ago[deleted]