https://github.com/techprimers/nats-example
NATS example using JNats
https://github.com/techprimers/nats-example
nats nats-example nats-messaging
Last synced: 8 months ago
JSON representation
NATS example using JNats
- Host: GitHub
- URL: https://github.com/techprimers/nats-example
- Owner: TechPrimers
- Created: 2020-08-22T19:00:42.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-08-22T19:03:14.000Z (about 5 years ago)
- Last Synced: 2024-12-31T19:41:59.408Z (9 months ago)
- Topics: nats, nats-example, nats-messaging
- Language: Java
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NATS Example using JNats
## Start Nats Server using Docker
- Start Nats Server using Docker
```
docker run --name nats --rm -p 4222:4222 nats
```
- Connecting to NATS Server
```
telnet localhost 4222
```
- Publishing a message to subject `com.techprimers`:
```
PUB com.techprimers 5
hello
```