tulios / kafkajs

A modern Apache Kafka client for node.js

Home Page:https://kafka.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Increate KafkaJS producer default retry

TiansuYu opened this issue · comments

KafkaJs use a default retry = 5, which is extremely small for any internet intermittent issues. The default settings in Java client / Kafka doc in contrast, use MAX_INT as the default value (and they explained why that is the case / recommended value in production). It would make the configs consistent if KafkaJS could follow the same convention. Especially for teams managing interactions with all kinds of Kafka clients for Enterprise.

Ofc, in the end, this is a decision that has to be made by KafkaJS. But IMHO, it would be great that we could follow a consistent convention across different libs to ease communication and minimize surprises in production environments.