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

camel-kafka -consumerCount vs consumerStreams problem with pool size

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.23.1, 3.11.2
    • 3.12.0
    • camel-kafka
    • None
    • Unknown

    Description

      Hi guys,

      Currently we are configuring camel-kafka component, but we don't understand at all the consumer properties related to concurrency.

      According to the configuration:

          consumersCount: The number of consumers that connect to kafka server (default 1)
          consumerStreams: Number of concurrent consumers on the consumer (default 10)

      But... Having a look to the source code, the consumerStreams is the number of threads the executor is configured.

      And a task is submitted to the executor for each kafka consumer, which is the consumerCount.

      So... I don't see what you get if you configure different values in consumerCount and consumerStreams with the current implementation.

      Basically I expected that if define consumerCount=1 and consumerStreams=10, which is the default. I would get 10 threads consuming from that Kafka consumer. But I end up having a pool of 10 threads with only a worker which is a single thread consumer.

       

      Talking with Andrea Cosentino, seems that this maybe it's a problem in the documentation.

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              padilo Pablo
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: