Hi everyone! I’m thinking of deploying Pheonix LiveView on Cloud Run. But I looked at its pricing, and it has great pricing for REST requests, where it only charges you for the time you spend handling the request. The issue with WebSockets is that it treats a WS connection as a regular single long connection. Making the serverless aspect of Cloud Run pricing kind off useless.
What I’m proposing is an alternate mode, where on each event on the client side the client sends what has happened, and LV responds with the diff.
The issue is with server sent events. I guess the client would need to be constantly polling the server Could be useful to customise the timeout between polls.
Anyway, just a suggestion.