Skip to content

This project demonstrates how to use NATS JetStream for publishing and consuming messages with durable consumers

Notifications You must be signed in to change notification settings

pavlokobyliatskyi/nats

Repository files navigation

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

About

This project demonstrates how to use NATS JetStream for publishing and consuming messages with durable consumers

Topics

Resources

Stars

Watchers

Forks