Are kafka leaders partitions themselves or are they brokers? My initial understanding was that they were partitions which acted as read/write agents which then deffered their value to ISRs.
However recently I have been hearing them mentioned as though they happen at the "broker" level, hence my confusion.
I know there are other posts which aim to answer this question, but the answers there did not help.
Partition leader concept works, when Kafka topic have --replication-factor more then 1 (that also means our cluster must have broker count greater or equals to replication-factor).
In such scenario when ever producer push any message to topic's partition, the request first comes to partition's leader (among all replicated partition present on Kafka cluster). Which stores the message and first replicate the message on other follower partitions and then after sends acknowledge for the message to producer.
After completion above process only, particular message would be available for consumer to consume.
I recommend official link for more understanding.