NATS JetStream Publisher and Consumer
This project demonstrates how to use NATS JetStream for publishing and consuming messages with durable consumers. It includes a publisher that sends messages to a specific subject and a consumer that listens for those messages, acknowledging them upon receipt.
Install dependencies
npm ci
Run NATS
docker compose up -d
Run Publisher
npm run publisher:serve
Run Consumer
npm run consumer:serve