Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We propose making the broker-side deduplication buffer size configurable (or dynamic). This will allow operators to tune their clusters for high-latency environments by increasing the allowed max.in.flight.requests.per.connection for idempotent producers. This change will enable users to maintain exactly-once semantics and strict ordering without accepting a massive degradation in throughput over long-distance links.

Following is throughput difference among 1, 5, 10 max.in.flight.requests.per.connection. The server is in AWS us-east-1 and the producer is in AWS ap-northeast-1.

max.in.flight.requests.per.connectionthroughputavg latencymax latency50th latency95th latency99th latency99.9th latency
119.623234 records/sec25093.64 ms49788.00 ms25193 ms47286 ms49341 ms49788 ms
595.129376 records/sec5111.89 ms10096.00 ms5135 ms9644 ms10095 ms10096 ms
10 (change hard code value in code)183.083120 records/sec2558.52 ms5036.00 ms2528 ms4749 ms5034 ms5036 ms

Public Interfaces

Broker Configuration

...