What is your experience using LiveView for a public website?

Hey folks.

I am considering using LiveView for an ad driven website. My concern here is the potential for abuse and the resource usage of having the socket open for any soul that visits the website. Does anybody has experience with this? Should I just default to dead views here?

Thank you!

If there is no explicit reason to use LiveView, then yes, use dead views and request/response. KISS and all that. Maybe share what you think you’d use LiveView for.

One thing that concerns me about public sites is the people who keep a million tabs open. Not that this isn’t a problem with authenticated sites, but when we say public, I assume a lot more traffic.

Another issue I have is mobile phones and how the websocket lifespan is, as people push the mobile browsers back and forth into memory from the background.

1 Like