Aborting a Request Processing in Server when client disconnects #51565
Unanswered
sathishsoundharajan
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have multiple micro-service running in our infra, we have also configured time outs to each API.
Let say Service A calls Service B, but Service B takes longer to respond Service A timed out/client disconnect, the request processing in Service A continue to process the request, this is really affecting the server performance. Is it possible to abort the server processing when client disconnects ? I know it is not straight forward & not a ideal design. But i want to implement the solution i'm getting here in case by case basis.
I read about Abort Controller, but it seems we have to pass the Signal across full stack of the handler and listen for Abort event at each function and throw error, which is not ideal i guess.
Beta Was this translation helpful? Give feedback.
All reactions