Asynchronous case summaries
Problem
Case analysis takes longer than an HTTP request, so its progress and failures need persistent state.
Implementation
Implemented Fastify endpoints, PostgreSQL report storage and a Temporal workflow with activity timeouts, retries and failure recording in the earlier case-review iteration.
Result
The dashboard can start a summary, check its status and retrieve the report after the original request ends.