Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10718

Route Policy implements circuit breaker pattern to stop consuming from the endpoint

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.19.0
    • camel-core
    • None
    • Unknown

    Description

      Our project recently needed a circuit breaker that stop consuming messages from the from endpoint. I noticed that the Camel circuit breakers consumed from the endpoint even in the open mode and controlled access to the to endpoints on the route.

      Based on a Stack Overflow answer, I created a circuit breaker that will stop consuming from the starting endpoint based on exceptions being thrown. It is using a RoutePolicy and imitates the existing ThrottlingInflightRoutePolicy as well as the CircuitBreakingLoadBalancer.

      This is in the PR 1400
      https://github.com/apache/camel/pull/1400

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              mbarlotta Mike Barlotta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: