You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way that one consumer can consume from multiple topics but share the state? It looks like one consumer module is being started for each topic.
Best regards,
Dario
The text was updated successfully, but these errors were encountered:
Hi @Zarathustra2 ! Good question. IIRC each local worker gets its own process - so even if you have a single topic and multiple partitions get assigned to the same consumer node, each partition will get its own process. This is by design for scaling purposes. Multiple topics is just a special case of that I think.
I think the best thing to do here is to have your own shared state management unless there's some reason why that's not practical? I don't really want to go against the scaling structure we have, and any shared state solution we come up with might make assumptions that don't work for all users.
If I start the following consumer group:
If
FooBar
has the following handler:then each topic will have its own state.
Is there a way that one consumer can consume from multiple topics but share the state? It looks like one consumer module is being started for each topic.
Best regards,
Dario
The text was updated successfully, but these errors were encountered: