Can an older Kafka client (1.1) talk to a newer broker (2.0) and can a newer client (2.0) talk to an older broker (1.1)?

Study for the CCDAK Apache Kafka Test. Use flashcards and multiple choice questions with hints and explanations for each question. Prepare thoroughly for your exam!

Multiple Choice

Can an older Kafka client (1.1) talk to a newer broker (2.0) and can a newer client (2.0) talk to an older broker (1.1)?

Explanation:
Communication between Kafka clients and brokers relies on a negotiated set of API versions. When a client connects, the broker tells it which API versions are supported, and the client then uses a compatible subset of those APIs. This design lets a newer broker still handle requests from an older client using the older API calls it supports, and it lets a newer client operate with an older broker by sticking to the APIs the broker understands. As a result, both directions work, with the caveat that you won’t be able to use features introduced in newer APIs when either side is on an older version.

Communication between Kafka clients and brokers relies on a negotiated set of API versions. When a client connects, the broker tells it which API versions are supported, and the client then uses a compatible subset of those APIs. This design lets a newer broker still handle requests from an older client using the older API calls it supports, and it lets a newer client operate with an older broker by sticking to the APIs the broker understands. As a result, both directions work, with the caveat that you won’t be able to use features introduced in newer APIs when either side is on an older version.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy