Open acouvreur opened 2 weeks ago
SSE updates would be handy.
For Kubernetes, I wonder if emitting Events is also appropriate?
Kubernetes events will be listened to because Sablier triggers this events by changing the cluster resources.
At some point this project is also some kind of abstraction on turning on and off workloads.
For each concrete implementation (docker, kubernetes, etc.) the project needs a uniformized way of saying: container has started/deployement is ready/etc.
Create a Server Sent Event endpoint or a websocket endpoint to allow consumer to display live informations.
Such endpoint could be sent as response href/location header (X-Sablier-SSE-url, etc.) to fetch the events related to the initial query.
Plugins could then call this once and then just receive live update. And this connection would keep the session up all the time.