Repository navigation
What does maxConcurrency actually do? #601
Replies: 1 comment
|
Akhil Rajput (@akhil-dh1) - in the core module, yes:
Where the fork stands: unchanged on v0.6.0.0, and the README only said "the maximum number of concurrent processing operations", which is what left your question open; the README's setup callout now says all of the above (astubbs#516, landing). Two open pull requests on the fork, neither merged yet, change the picture: virtual threads for the user function on JDK 21 and later (astubbs#360), which makes the thread count stop mattering, and self-tuning concurrency, where the engine finds its own sustainable number instead of asking you to guess (astubbs#333). The coordinates changed with the fork - on Maven Central it is now: <dependency>
<groupId>bz.stub.parallelconsumer</groupId>
<artifactId>parallel-consumer-core</artifactId>
<version>0.6.0.0</version>
</dependency>( find . -name '*.java' -exec sed -i 's/io\.confluent\.parallelconsumer/bz.stub.parallelconsumer/g' {} + |
Uh oh!
There was an error while loading. Please reload this page.
Wanted to know is the maxConcurrency property basically the size of the thread pool that executes the messages parallelly? If so, is it a fixed thread pool or dynamic one? Because in some examples I saw maxConcurrency set to 1000, if that is thread count of a fixed pool, that would crash the system. Just wanted some clarity on this. Thanks.
All reactions