Hacker News new | past | comments | ask | show | jobs | submit login

How would this scale for, I don't know, 10k concurrent users? Would a live chat app be reasonable?



Here's an example of using it with 2 millions users: https://www.youtube.com/watch?v=c6JcVwbOGXc


I'm assuming the parent meant how would this specific configuration of elixir + phoenix + liveview scale.


The answer is applicable. LiveView is implemented using Phoenix Channels.


I'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.


A 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.


Excuse my lack of knowledge, but I was always under the impression that websockets are not that scalable since you are opening 1:1 connections.


Thst 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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: