At 3:17 a.m. the page is blunt: tutoring p99 has fallen off a cliff, and PostgreSQL is rejecting new work with OperationalError. A student asking a follow-up sees a spinner that never resolves. On the box, one synchronous outbound call is sitting inside an async endpoint, the event loop is stuck behind it, and idle transactions have pinned every pooled connection.
I have been looking at HKUDS/DeepTutor as an external systems engineer, not as a core author of the project. The product at https://deeptutor.info/ and the HKUDS/DeepTutor repository aim at adaptive, on-demand tutoring: generated explanations, session history, and concurrent learners who will not wait. The architecture only holds if the FastAPI edge stays non-blocking. The recurring production break is ordinary. Someone reaches for a synchronous HTTP call, a sync LLM SDK, or a database session that is never released, inside an async def handler.
While that call waits, every other request on the worker waits with it.…