Repository navigation
Recommendation: Multiple Parallel Consumer instances (different group.id) in same app for workload isolation and fan-out control #910
Replies: 1 comment
|
mayurjaiswal9 - yes, and it is the shape I would recommend for what you describe. Answers to your four questions, then where the fork stands.
Rate-limiting the command stage by event-stage capacity has no built-in answer today. The lever now is For the future, the fluent API (astubbs#502, an open pull request, incubating when it lands) is the shape I would move this to: one definition per stage, a route per topic with its consumed and produced types declared, so "a command produces events" is a typed route rather than a hand-written producer, and each route reports its own meters. The isolation advice does not change with it: a definition is still one consumer group and one worker pool, so the command stage and the event stage stay two definitions. Per-route concurrency limits inside one definition were deliberately left out of that first milestone. Everything above is on v0.6.0.0 of the maintained fork, and the isolation-versus-sharing guidance is now a README section of its own, "Several instances in one application" (astubbs#516, landing). 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.
Hi PC team,
We are using Confluent Parallel Consumer in a service that consumes multiple topics. We have two main workloads:
We currently run these through the same application and have experimented with sharing a single PC (or shared resources). We are seeing a few problems:
We are considering changing the architecture to:
group.idsThis would give us:
Questions:
We’re not asking about partitions or just “more threads” — we’re specifically trying to avoid:
Would appreciate guidance on whether this is the right architectural direction with Parallel Consumer.
Thanks!
All reactions