4 ms·
How would this scale for, I don't know, 10k concurrent users? Would a live chat app be reasonable?
by jakearmitage 7y ago
How would this scale for, I don't know, 10k concurrent users? Would a live chat app be reasonable?
- mercer 7y agoI'd say live chat and many concurrent users (+ many small messages being sent around) is exactly the kind of thing that Phoenix (and LiveView, and Elixir) is basically made for.
- AlchemistCamp 7y agoA live chat app is its sweet spot. It runs on the same Erlang VM that Whatsapp used to scale to hundreds of millions of users on under 30 machines and very few employees.
- jakearmitage 7y agoExcuse my lack of knowledge, but I was always under the impression that websockets are not that scalable since you are opening 1:1 connections.
- theagilecoder 7y agoThst not true in the Elixir ecosystem. The numbers I see on my 5$ droplet are sth I haven't seen before. And that after writing 5% of code that i usually had to write in other stacks.
- dorian-graph 7y agoHere's an example of using it with 2 millions users: https://www.youtube.com/watch?v=c6JcVwbOGXc https://www.youtube.com/watch?v=c6JcVwbOGXc
- pdr2020 7y agoI'm assuming the parent meant how would this specific configuration of elixir + phoenix + liveview scale.
- nathan_long 7y agoThe answer is applicable. LiveView is implemented using Phoenix Channels.