steve lin
steve lin

Reputation: 109

Apache Kafka Consumer Connection

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

Answers (2)

Lincoln
Lincoln

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

Upvotes: 1

Lundahl
Lundahl

Reputation: 6572

Yes, when using the Simple consumer API you get to manage consumption directly from the brokers. See usage example here

Upvotes: 1

Related Questions