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

If a broker receives a produce request for a specific partition and the leader for this partition is on a different broker, the client that sent the produce request will get an error response of “Not a Leader for Partition.”

From

Cover of Kafka: The Definitive Guide

Note

Should consumers track leader of the partition ?