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

camel-kafka: Need the ability to pause kafka consumer

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.12.0
    • 3.17.0
    • camel-kafka
    • None
    • Unknown

    Description

      When handling transient errors that have exhausted retry limits, sometimes pausing the Kafka consumer is the best way to handle an outage.  A great example of this would be the Facebook outage that happen this week.

      One might suggest that stopping the consumer work would for this use case.  This would of course work but would require a manual restart.  Also, you want to try to avoid a rebalance of the consumer.

      I would like to see a new strategy be created that would allow for pause and resume to be configured.

      Ideally, the resume could be configured based on a health check.

       

      Example code: https://github.com/jeanlouisboudart/retriable-consumer/blob/master/consumer/src/main/java/com/sample/InfiniteRetriesConsumer.java

       

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              zachariahyoung Zachariah Young
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: