Consume Multiple KafkaTopics using KafkaFlow with Wild Card #609
Replies: 1 comment
-
After a little more research I figured out how this works. I needed to convert my topic name to a regex string and it seems now all the topics are being consumed. Setup code now looks like:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a .NET application and want to consume multiple topics using the same consumer. I am reading my topic name in as an environment variable and want to include a wildcard (*) in order to consume from all matching topics.
The topic name I am using is like
dev.std.*.fct.request.0
. Looking at the KafkaFlow documentation on GitLab, it looks like the following should work when executed at startup in my ServiceCollectionExtensions.cs.when kafkaBatchConsumerOptions.Topic name is set to the value above.
When I run this I get the following error.
Am I missing something or is it not possible to set up a consumer in this way?
Beta Was this translation helpful? Give feedback.
All reactions