Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 557 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 557 Bytes

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