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

Add example for subscribing to multiple topics #261

Open
bputt opened this issue Jun 11, 2019 · 1 comment
Open

Add example for subscribing to multiple topics #261

bputt opened this issue Jun 11, 2019 · 1 comment

Comments

@bputt
Copy link

bputt commented Jun 11, 2019

I posted the question to SO: https://stackoverflow.com/questions/56535113/kafka-streams-listening-to-multiple-topics-hangs

It would be helpful if there was an example of how to properly stream multiple topics IN and do some processing and have the data go to various output streams based on some if/then scenario

@OneCricketeer
Copy link

OneCricketeer commented Aug 20, 2021

There's nothing particularly interesting about the difference between these as long as you want the topology to be the exact same between every topic

  • stream(String topic)
  • stream(Pattern topicPattern)
  • stream(Collection<String> topics)

If you want to go to various output topics, then the docs already include example of branch operator

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

No branches or pull requests

3 participants