Update maxInFlightRequests to 5#980
Conversation
The kafkajs require Kafka version >= 0.11, so We can use maxInFlightRequests with value 5. Here more document for guarantee with this value. https://issues.apache.org/jira/browse/KAFKA-5494 So, It's not required to set the maxInFlightRequests to 1. (It's only use for ordering message but not relate to transaction purpose).
|
While I haven't read through the entire implementation of this, I'm afraid it's not as simple as just setting it to 5. It requires that the client implement a certain behavior to allow for it first. Specifically from KAFKA-5494:
This document describes the design Granted, I haven't looked at our transaction code for literal years, but I don't think KafkaJS is currently designed to adhere to those requirements. |
The kafkajs require Kafka version >= 0.11, so We can use maxInFlightRequests with value 5.
Here more document for guarantee with this value. https://issues.apache.org/jira/browse/KAFKA-5494
So, It's not required to set the maxInFlightRequests to 1. (It's only use for ordering message but not relate to transaction purpose).