6

A large number requests over our Azure API Management result in the ClientConnectionFailure exception.

By querying the logs I see two variants of the error:

exceptions
| where cloud_RoleName == "..." 
| summarize num = count(itemCount) by problemId, outerMessage 
| order by num
  1. problemId: ClientConnectionFailure at transfer-response, outermessage: A task was canceled, count 403,249
  2. problemId: ClientConnectionFailure at forward-request, outermessage: The operation was canceled, count 55,531

Based on this post, the problem could be time-outs or that clients abandon connections. With response times generally within 500ms I'm inclined to rule out the first.

The question is: what is the difference between transfer-response and forward-request, and does it provide any clues as to what is going on?

1 Answers1

7

Transfer-response means that the client dropped the connection after it started receiving the response.

Forward-request means that the client dropped the connection while the APIM gateway was sending the request to the back end or waiting for a response from the back end.

Mo Haidar
  • 3,748
  • 6
  • 37
  • 76