/
How significantly to decrease the throughput for Kafka Producer
How significantly to decrease the throughput for Kafka Producer
Safety vs Throughput : Setting MaxInFlight to 1 can significantly decrease the throughput. So, we can guarantee that Kafka will preserve message order on the event that some messages will require multiple retries before they are successfully acknowledged.
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.
, multiple selections available,
Related content
B- Event-Based Architecture with Apache Kafka
B- Event-Based Architecture with Apache Kafka
More like this
How-To exchange events between applications using different protocols
How-To exchange events between applications using different protocols
More like this
Priority Queue Pattern
Priority Queue Pattern
More like this
Integrate Apache Kafka Connect
Integrate Apache Kafka Connect
More like this
Event-Based Architecture with Kafka
Event-Based Architecture with Kafka
More like this
Competing Consumers Pattern
Competing Consumers Pattern
More like this