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.
- Docker Desktop
- Golang
start nats
docker-compose up
run the publisher
cd publisher
go get
go run .
run the consumer
cd consumer
go get
go run .
the consumer does not display messages, although it should via the callback.