Safety vs Throughput : Setting MaxInFlight to 1 can significantly decrease the throughput.
var producerConfig = new ProducerConfig { Acks = Acks.All, BootstrapServers = "localhost:9092", BatchSize = 32768, LingerMs = 20, CompressionType = CompressionType.Snappy, MaxInFlight = 1 };
Maximum number of in-flight requests per broker connection. This is a generic property applied to all broker communication, however it is primarily relevant to produce requests.