Pushing real-time updates to clients with Server-Sent Events (SSEs)

from blog Redowan's Reflections, | ↗ original
In multi-page web applications, a common workflow is where a user: Loads a specific page or clicks on some button that triggers a long-running task. On the server side, a background worker picks up the task and starts processing it asynchronously. The page shouldn’t reload while the task is running. The backend then communicates the status of the...