Questions about APIM backend circuit breaker

Sam McFarland 11 Reputation points
2023-12-15T18:06:42.4966667+00:00

I've been experimenting with the preview version of circuit breakers using a backend in APIM. I'm able to get the trip to fire and start getting a 503, but it doesn't look like there's a way to resume sending requests other than waiting for the trip duration to expire. Is there a way to force requests to resume?

Another question I have is in regards to criteria. It works fine if I get a 5XX from the backend, but the backend I'm working with is a 3rd party that has a bad habit of returning a 200 and an error code in the body. Is there a way to increment the error count from the circuit breaker from within the APIM policy?

Thanks.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,336 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,416 Reputation points
    2023-12-15T19:44:40.3233333+00:00

    Sam McFarland Thanks for posting your question in Microsoft Q&A. Please find the answers below:

    1. Currently, it is not possible to resume requests and have to wait for the trip duration to expire.
    2. Incrementing error count via policy (or any other way) is not supported as well.

    You may be already aware about CircuitBreakerRule and CircuitBreakerFailureCondition which supports configuring trip duration, interval, status code ranges, or error reasons etc. If you are in need of this feature for your business scenario, feel free to submit your idea via https://aka.ms/apimwish and others with similar interests can upvote it too. This feedback will help our product team prioritize and improve features.

    I hope this helps and let me know if any questions.


    If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.