batch.size

The producer setting for the maximum number of bytes collected into one partition's batch before it is sent.

In more detail

The default is 16384 bytes. A batch is sent as soon as it is full, even if linger.ms has not expired. Setting it very small, as the course does with 1, effectively turns batching off.

Example

KafkaProducer(batch_size=16384, linger_ms=50)

Related terms

Taught in

References

Certification courses