How to update a content region in real time?

How to update a listing (list of content links) on the front-end live as new content is added to the database? The website would possibly serve 2000 concurrent users, how to send those updates to all opened browsers?

Have each client register via channels to a topic and broadcast to that topic. That should it be, roughly…

2 Likes

what @NobbZ said… so it depends on your frontend, you can do it in vanilla js, or whatever frontend framework you are using…

just wanted to throw the excellent drab in there as well Drab: remote controlled frontend framework for Phoenix - then you can do it all from the elixir side…

4 Likes