The default is Schedule.stop which is, to fail the producer on the first auth error. ⚠️ Retrying can cause records to be produced in a different order than the order in which they were given to zio-kafka.
The compression codec to use when publishing records. Compression is of full batches of data, so the efficacy of batching will also impact the compression ratio (more batching means better compression). See also withLinger.
The maximum amount of time a record is allowed to linger in the producer's internal buffer. Higher values allow for better batching (especially important when compression is used), lower values reduce latency and memory usage.