When duplication is permited, but ordering must be guaranteed, what producer configuration combination is expected to be faster?
enable.idempotence = true
max.in.flight.requests.per.connection = 5
or
enable.idempotence = false
max.in.flight.requests.per.connection = 1
?
From my understanding in reading the Kafka documentation and this and this question, to ensure records ordering we have the above two options.
The first will also ensure deduplication, with a higher in-flight request. The deduplication would add a slight performance overhead, but since I can set a higher in-flight request I would expect it to be faster than the second option.
Which one should be faster?