简体   繁体   中英

How to add new Application consumers on the fly in Kafka

I am working on an event driven flow architecture and I'd like to have as many independent applications consuming from the same topic independently (not in the same consumer group). To do that I'd create one consumer group for each new application but I'd like to do that automatically through a system. Is that possible and is that the best approach?

By the way we are coding with Python.

Thanks.

All you need to do is change the value of the group.id property while creating the consumer. You can do this either manually in each application or you can generate a random string using the UUID generator in Python

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM