I have two Kafka consumer ConsumerA
and ConsumerB
. I want to run these two kafka consumers independent of each other on the same machine. There is
A quick suggestion, apologies if you know about it already. Class level variables are never thread safe. If you need to have a different Properties object for every thread, better declare them at the method level and provide them as parameter to other methods where you need to access Properties object.