-
Kafka today supports the closest replica fetch for consumers which can improve performance and save network traffic in case you have a multi-rack cluster. Does this library support this feature? I can't find any evidence for that in the documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It does not. KIP-392 requires a Fetch version 11 request that supports passing in the https://github.com/zendesk/ruby-kafka/blob/master/lib/kafka/protocol/fetch_request.rb#L41 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer @geoff2k. Do you know if there are any plans to support it? or why ruby-kafka stays with version 4 request - I assume for backward compatibility for older Kafka version but maybe we can add support in newer request versions. |
Beta Was this translation helpful? Give feedback.
-
Backwards compatibility is the main answer. Ruby-kafka does not have multi-version Kafka support, so a decision to update an API version means that backwards compatibility is lost. |
Beta Was this translation helpful? Give feedback.
Backwards compatibility is the main answer. Ruby-kafka does not have multi-version Kafka support, so a decision to update an API version means that backwards compatibility is lost.