That’s an awesome explanation of your thought process when deciding, thanks a bunch!
I should probably be less wary of choosing LiveView, because like you said, in most cases it doesn’t really matter if I cause an extra “unneccessary” WS connection.
I have to admit though - 9 times out of 10 I run the same code path in mount/3 regardless if the socket is connected?/1 or not…so just as an approximation I tend to think that “1 requests has the cost of 2” (double db queries etc). I know i could implement a “skeleton state” on the initial render, but I’m just too lazy to do that! ![]()
The proposal you linked to looks super interesting! Having something like that (cancellable live views) would really improve LV imo.
I’ll probably stick to OneShotViews
for high traffic, 100% static pages like high traffic landing pages, but go LiveView on most everything else. I’ve probably been trying to avoid LV a bit too much for my own good. Thanks for making me realise that!
And re Python, you should obviously just use “uv”! Don’t ask me again in six months time though, because my answer will likely have changed by then ![]()






















