I want to subscribe to all topics as they are created but topic names does
not have any pattern. Consumer starts with subscription to let's say 3
topics and add more topics to exisiting kafka consumer as they are created.

Regards,
Chintan

On 04-Jan-2018 11:02 PM, "Jordan Pilat" <jrpi...@gmail.com> wrote:

> Did you want to subscribe to all topics as they are created, or to exclude
> some of them?
> If the latter, is there a pattern in the names of the topics you wish to
> exclude?
>
> - Jordan Pilat
>
> On 2018-01-03 23:39, chintan mavawala <chintan25...@gmail.com> wrote:
> > Hi,
> >
> > We have a use case where we need to start kafka consumer with a fixed
> list
> > of kafka topics and add more topics on the fly. Since there is no pattern
> > in names of topics, using pattern for dynamic subscriptions of topics is
> > not feasible.
> >
> > Is it a good practice to subscribe to topics on given kafka consumer on
> fly
> > using after starting consumer?
> >
> > I understand that KafkaConsumer is not thread safe. Any ill effects due
> to
> > multi threaded env?
> >
> > Regards,
> > Chintan
> >
>

Reply via email to