New answers tagged


Websockets could be used to prevent the timeout. Then you can even send updates during the work to the client, without the client have to constantly ask for changes.


For such long-running tasks, delegate them to a background task. Then you could have 2 API endpoints, one to start the long-running task and a second one to request its current status. For example, your DELETE /CleanUpInactiveUsers/{years} invocation could return a redirect status code, redirecting the front-end to /CleanUpInactiveUsers/{years}/result if the ...

Top 50 recent answers are included