3 ms·
It will scale just as well as any other stateful application built with Phoenix, such as one using Phoenix Channels, which we've shown can scale to millions of
by chrismccord 5y ago
It will scale just as well as any other stateful application built with Phoenix, such as one using Phoenix Channels, which we've shown can scale to millions of simultaneous connections. LiveView allows you to mark which data you want to hold in memory, and which are only required for rendering and can be discarded for only storing what you need. That said, memory is going to be higher than a non-stateful application, with all the usual caveats of more HTTP overhead, server interaction overhead, DB pressure, and such so the increase in memory comes as savings in other areas.
tldr; since we are built on top of the Phoenix channel primitive, it will have the same scaling characteristics.
https://www.phoenixframework.org/blog/the-road-to-2-million-websocket-connections https://www.phoenixframework.org/blog/the-road-to-2-million-...