O'Reilly logo
  • Abhishek Singh thinks this is interesting:

In addition, if a client receives the “Not a Leader” error to one of its requests, it will refresh its metadata before trying to send the request again, since the error indicates that the client is using outdated information and is sending requests to the wrong broker.


Cover of Kafka: The Definitive Guide


Which class is responsible for sending meta data requests ?