go-nats-queue
is a working example of using NATS as a queue.
# terminal A
docker compose up
# terminal B though Y
make pub
# terminal Z
make con
https://dzone.com/articles/implementing-nats-jetstream-as-queues-in-golang-a
https://natsbyexample.com/examples/jetstream/pull-consumer/go
https://docs.nats.io/nats-concepts/jetstream/consumers
https://github.com/nats-io/nats.go/blob/main/examples/nats-qsub/main.go
https://nats.io/blog/docker-compose-plus-nats/
https://www.synadia.com/platform
https://medium.com/@akinnurun.samuel/comparing-nats-nats-streaming-and-nats-jetstream-121e019feef0