On my path of practicing simple software my existing understanding of systems, protocols and tools are challenged. My mental model for SSE (Server Sent Events) was a way to keep a connection open and send updates to the client from the server. Broadly this is correct, but read on as I break down what SSE actually is to see why you may be underutilizing SSE in your applications.
If "ui = fn(state)" has ever resonated with you as a frontend developer you owe it to yourself to consider we as an industry have been going about it all wrong for years. Likely your state already lives on the backend and by syncing it to the frontend to render UI we're adding measurable amounts of unnecessary complexity. If you're to radically simplify if you development environments and production deployments then read on…