Queue producer and consumer tools with Kafka support, including both node-rdkafka and kafkajs adapters. Version 3.0.6 (latest) is stable with TypeScript types included. Designed to address Kafka's lack of slow-consumption support by providing a scheduling layer for delayed/controlled task processing. Key differentiators: dual adapter support (node-rdkafka/kafkajs), built-in delay and pause mechanisms, event-based error handling. Release cadence appears low (last update not recent). Not actively maintained (last commit 2021). Alternative to manual Kafka consumer management with simpler API.
npm install queue-scheduleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a KafkaJs producer and consumer with queue-schedule, sending a message and processing it.
Migrate to node-rdkafka or kafkajs adapters.
Evaluate alternatives if needing long-term support.
Always reference via static property: RdKafkaConsumer.EVENT_CONSUMER_ERROR
Always invoke callback() after processing messages.
Refer to KafkaJS documentation for valid options.
npm install node-rdkafka and ensure version compatibility.
npm install queue-schedule
Use const { KafkaJsProducer } = require('queue-schedule');