Skip to content

NATS: JetStream Task Queue

Persistent task queues with at-least-once delivery and consumer groups.

Source: examples/nats/jetstream-task-queue.js

Usage

bash
node examples/nats/jetstream-task-queue.js

What It Does

  1. Creates a JetStream stream for task messages
  2. Publishes tasks with durable acknowledgement
  3. Demonstrates consumer groups for parallel processing
  4. Shows at-least-once delivery and retry semantics

Released under the MIT License.