© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
24 replies
LazyGuard

How to handle long running requests ?

Consider the following architecture: there is three different endpoints (see picture):



1. /generate-transcript (
Resource
Resource
in picture): This endpoint initiates the transcript generation process for a specific id (given in body). It handles the initial request from the client to start the transcription task. The app then returns a 202 Accepted and a Location header that contains a pointer to the resource status endpoint.
2. /transcript-status (
Status Resource
Status Resource
in picture): This endpoint is responsible for checking the status of the transcription process initiated by /generate-transcript. It helps the client monitor the progress and readiness of the transcript. The server responds with an empty 200 OK (or 404 it depends) if the status is unavailable, indicating that the transcript hasn't been generated yet. The client keeps pooling, when the transcript is available the response will be 302 with a Location header that contains a pointer to the transcript resource.


3. /transcripts (
New Resource
New Resource
in picture): This endpoint serves the completed transcript upon successful generation.

Question: What are the drawbacks of merging the status resource endpoint with the transcripts resource endpoint
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ How to handle websockets?
C#CC# / help
11mo ago
Cancel long running task/method
C#CC# / help
2y ago
How to put long running service into a .NET Rest API?
C#CC# / help
10mo ago
Long running process in Blazor Server
C#CC# / help
2y ago