I have a question regarding the max.in.flight.requests.per.connection kafka producer configuration. Is this configuration applies on per message or all messages in a batch sent to the broker ?
for example, if my batch size is 16KB and size of each message is 1 KB then batch will have 16 messages.
if max.in.flight.requests.per.connection value is 1 then will producer send one message from the batch and wait for the acknowledgment before sending next message from the batch ?
or
producer will send all the messages in the batch and wait for the acknowledgment before sending the next batch ?