Server-Sent Events: an alternative to WebSockets
For starlette/fastapi there is a battle tested lib: <a href="https://github.com/sysid/sse-starlette" rel="nofollow">https://github.com/sysid/sse-starlette</a>