3 ms·
I built several internal tool to tail logs using SSE with Flask/FastAPI. Easy to implement and maintain. For FastAPI if you want some hooks when client disconn
by est 2y ago
I built several internal tool to tail logs using SSE with Flask/FastAPI. Easy to implement and maintain.
For FastAPI if you want some hooks when client disconnects aka nginx 499 errors, follow this simple tip
https://github.com/encode/starlette/discussions/1776#discussioncomment-3207518 https://github.com/encode/starlette/discussions/1776#discuss...