I know that kafka producer will batch messages into batches. Each batch belongs to a particular partition.
My questiones are
- Does the producer know which partition each batch belonges to ?
- Does the producer know the broker address of each partition ?
- When producer send requestes, does each request contains multiple batches or contains just one batch which belongs to the target partition.
- If the producer send multiple batches, Does the receiving kafka server retransmit the batches to the target partition.