This is golang example for use NATS with publisher and queue subscriber. Before run this apps, you must installed NATS Streaming Server first.
Before run this service. Make sure all requirements dependencies has been installed likes Golang, and NATS
This app has 2 folders, publish
and subscribe
.
App in folder publish
used for send message to NATS server and App in folder subscribe
used for consuming message from NATS server.
Use command go run main.go
in publish
or subscribe
folders for run this application.