Skip to content
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

Consumer groups documentation #31

Open
fusion2004 opened this issue Apr 25, 2024 · 3 comments
Open

Consumer groups documentation #31

fusion2004 opened this issue Apr 25, 2024 · 3 comments
Assignees

Comments

@fusion2004
Copy link
Contributor

fusion2004 commented Apr 25, 2024

Coming to Karafka with only a very rudimentary understanding of Kafka, I was very confused at first on how to get the same topic to be processed by different consumers in the same application. (Our use case is wanting to reformat and deliver events to 3 different external services, 2 of which are being handled in the same Karafka app.)

I finally got the hint I needed in this FAQ: https://karafka.io/docs/FAQ/#what-are-consumer-groups-used-for
Unfortunately, it doesn't have a code example currently!

Do you think it would be beneficial to write an entire advanced doc on consumer groups, both in general for Kafka, as well as use in Karafka code and best practices recommendations? (for example: where do I put topic config when it appears multiple times in the routes?)

@mensfeld mensfeld self-assigned this Apr 25, 2024
@mensfeld
Copy link
Member

Yeah those are valid points.

This question (same topic multiple consumption) has been a frequent one. What do you think about following:

  1. Update the FAQ with code example
  2. Write advanced doc on consumer groups AND subscription groups (we can use this for CGs: https://mensfeld.pl/2017/11/kafka-on-rails-using-kafka-with-ruby-on-rails-part-1-kafka-basics-and-its-advantages/) and other docs for SGs (which are karafka concept)
  3. Update other relevant docs as you mentioned

Thank you for pointing this out. To be honest there are sooo many things that need docs that I'm just unable to keep up 😓

@fusion2004
Copy link
Contributor Author

Yeah, I think I could try to write that in a few days. IMHO tho: this and the other thing I posted are the only questions I've had trouble figuring out the answers to w/ Karafka. The documentation is generally fantastic!

@mensfeld
Copy link
Member

I will be happy if you can add code example to the FAQ.

I'll tackle 2 and 3 after Karafka 2.4 is released (hopefully tomorrow).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants