davsclaus commented on code in PR #30875:
URL: https://github.com/apache/camel/pull/30875#discussion_r4711904635


##########
components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/Kinesis2Configuration.java:
##########
@@ -54,6 +54,12 @@ public class Kinesis2Configuration implements Cloneable, 
AwsCommonConfiguration
                             + " from 1 to 10000. Not used by the KCL consumer 
(useKclConsumers).",
               defaultValue = "1000")
     private int maxResultsPerRequest = 1000;
+    @UriParam(label = "consumer", defaultValue = "10",
+              description = "Maximum number of shards that the consumer reads 
at the same time in a poll, each on a thread of a"
+                            + " thread pool of the consumer, which also routes 
the records of the shard. With 1, or a stream of"
+                            + " one shard, the consumer reads the shards one 
after the other on its own thread. Not used with"
+                            + " shardId, or by the KCL consumer 
(useKclConsumers).")
+    private int maxConcurrentShards = 10;

Review Comment:
   Good catch, thanks. Documented in c2cf70b57027: the option description and 
the component page now say that a value of 1 or less reads the shards one after 
the other on the consumer thread (the catalog and DSL copies are regenerated). 
I kept it lenient rather than rejecting values below 1, so an existing `0` 
keeps starting the route.
   
   _Claude Code on behalf of davsclaus_



##########
components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/Kinesis2Configuration.java:
##########
@@ -54,6 +54,12 @@ public class Kinesis2Configuration implements Cloneable, 
AwsCommonConfiguration
                             + " from 1 to 10000. Not used by the KCL consumer 
(useKclConsumers).",
               defaultValue = "1000")
     private int maxResultsPerRequest = 1000;
+    @UriParam(label = "consumer", defaultValue = "10",
+              description = "Maximum number of shards that the consumer reads 
at the same time in a poll, each on a thread of a"
+                            + " thread pool of the consumer, which also routes 
the records of the shard. With 1, or a stream of"
+                            + " one shard, the consumer reads the shards one 
after the other on its own thread. Not used with"
+                            + " shardId, or by the KCL consumer 
(useKclConsumers).")
+    private int maxConcurrentShards = 10;

Review Comment:
   Good catch, thanks. Documented in c2cf70b57027: the option description and 
the component page now say that a value of 1 or less reads the shards one after 
the other on the consumer thread (the catalog and DSL copies are regenerated). 
I kept it lenient rather than adding a guard, as sequential reading is a 
sensible outcome for such a value.
   
   _Claude Code on behalf of davsclaus_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to