https://github.com/dynastymasra/nats
Example golang code use NATS Streaming Server
https://github.com/dynastymasra/nats
go golang jetstream nats nats-client nats-messaging
Last synced: 7 months ago
JSON representation
Example golang code use NATS Streaming Server
- Host: GitHub
- URL: https://github.com/dynastymasra/nats
- Owner: dynastymasra
- License: apache-2.0
- Created: 2018-09-25T05:18:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-28T02:34:12.000Z (about 4 years ago)
- Last Synced: 2023-03-14T08:10:26.257Z (over 2 years ago)
- Topics: go, golang, jetstream, nats, nats-client, nats-messaging
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang NATS Jetstream
[](https://golang.org/)
This is golang example for use NATS with publisher and queue subscriber.
Before run this apps, you must installed [NATS Streaming Server](https://nats.io/) first.
## How To Run and Deploy
Before run this service. Make sure all requirements dependencies has been installed likes **Golang, and NATS**### Local
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.