BackgroundTasks Concurrency Across Async FastAPI Endpoints
FastAPI's BackgroundTasks hook runs after the response is sent, enabling side‑effects such as sending alerts without blocking the request. The challenge is to configure alerts that are both useful and non‑intrusive while handling concurrent async endpoint invocations. Because the task executes on the current event loop, multiple async requests can interleave