I am using Kafka with Spring-boot:
Kafka Producer class:
@Service
public
There are 3 possibilities:
request.timeout.ms
- this is the time that Kafka will wait for whole batch to be ready in buffer. So in your case if there are less than 100 000 messages in buffer, timeout will occur. More info here: https://stackoverflow.com/a/34794261/2707179batch-size
- related to previous point, it will send batches more often but they will include fewer messages.