Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 554 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 554 Bytes

nats-publish-consume-example

This example is used to find a minimal example for a publisher / consumer structure based upon https://pkg.go.dev/github.com/nats-io/[email protected]/jetstream#readme-basic-usage with NATS running in a Docker container.

Prerequisite

  • Docker Desktop
  • Golang

Usage

start nats

docker-compose up

run the publisher

cd publisher
go get
go run .

run the consumer

cd consumer
go get
go run .

Problem

the consumer does not display messages, although it should via the callback.