kafka-harbor 1.0 adds retries, dead-letter topics and safe shutdown to Node.js Kafka
The author has repeatedly rebuilt the same error-handling layer on top of Node.js Kafka clients, covering retries, dead-letter topics, offset commits and graceful shutdown. Existing clients such as kafkajs and @platformatic/kafka handle the wire protocol but leave these reliability concerns to each service. kafka-harbor, now at version 1.0.0, provides this layer on top of a client through a small adapter interface, with adapters for Confluent's client and @platformatic/kafka. Failed messages are re-produced to tiered retry topics and then to a dead-letter topic, while the consumer parks messages without being evicted from its group. Its stated principle is that a message is never silently lost, since every failure ends in a retry topic, the DLQ, or an explicit consumer stop.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in