Reputation: 109
I am looking at the docs of Apache Kafka.
The consumer connects to the Kafka by using the IP address/port of zookeepers.
Is it possible to use the IP address/port of broker?
Upvotes: 1
Views: 785
Reputation: 181
Of course you can.
The consumer connects to the Kafka by using the IP address/port of zookeepers. What you point is High-level API
And connecting to broker directly points Low-level API
Maybe this can help you
Reputation: 6572
Yes, when using the Simple consumer API you get to manage consumption directly from the brokers. See usage example here