YuFeng Shen
YuFeng Shen

Reputation: 1565

How kafka high /low level consumer API fetch the messages from the broker?

As I know the kafka consumer only can use the API poll() to pull the messages from the broker, however we know we also can use the kafka high /low level consumer API fetch the messages from the broker, so what's the relationship between kafka high /low level consumer API and API poll() ? The high /low level consumer API invoke the poll() inside?

Upvotes: 0

Views: 753

Answers (1)

amethystic
amethystic

Reputation: 7079

High/Low level consumers are so-called old consumers which are implemented by Scala. The consumers with poll APIs are new consumers, written totally by Java.

Old consumers will be soon deprecated and new consumers are recommended now.

Upvotes: 1

Related Questions