-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every brod_group_subscriber_v2 needs its own brod client #369
Comments
Hi! First of all, a disclaimer: |
Hi! Sorry for the long delay in responses. I think I identified the problem. It's likely related to how |
I have to admit I am surprised that the problem is indeed what you described and not that I have misused group_subscriber_v2 somehow ;) ... Do you think we should switch over to v1 for our case? Would that work in our setting? |
Yes, definitely switch to v1 for now, if you're doing anything serious. edit: P.S. Old behavior doesn't use topic_subscriber under the hood, hence it doesn't demonstrate this bug. |
ok, thanks, if that works, that would solve this issue for now....should I close it, or keep it open to track changes on v2? |
Please keep the issue open, I will use it as a reference for the fix. |
Hmm, turns out I was mistaken and v1 subscriber might be also affected by this issue. |
Sorry, it took me a while to fix it, mostly due to test suite deficiencies. |
Hi all, I'm studying creating a parallel-consumer client for Elixir, and while experimenting with Is there any interesting in fixing this issue? If so I'm planning on taking it up, but would appreciate any guidance if possible |
This issue is pretty old but seems to still be present. Anything we can do to help move a fix along? |
I have three consumer groups, one should write messages just plain to the console, another one should update a state representing API with certain messages, and the third one should store every message into a long term database (crate). I use a supervisor to start three according brod_group_subscriber_v2 (see this GIST). If I also start three brod clients first and attach each group subscriber its own client, everything works perfectly so that Offsets are commited to Kafka for every group and reads start from the latest commited offset.
If I use only one client (as I thought it is possible), only the last group in my CHILD_SPEC works, both other do not receive handle_message calls.
At the moment starting a client for every group is not an issue for me, but later in our project we plan to use some tens of consumer groups, and I don't really think that it might be a good idea to run 20 to 30 brod clients and blocking ressources for each of them.
The text was updated successfully, but these errors were encountered: