Docker-compose based example for simple NATS queue. Just simple example for my personal introduction to NATS
Sender based on localhost:8080
/send
Path for sending simple message (current unix time) in queue
Use ?message= query param for sending time and some text message
Reader/listener/etc. based on localhost:9090
/listen
Path for reading messages from storage
Every /listen call will read one message from storage
- Clone it
docker compose upfrom project root- ✨ You are awesome ✨ (also you can check
localhost:8222for some stats)