https://github.com/norakgithub/natsman
https://github.com/norakgithub/natsman
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/norakgithub/natsman
- Owner: NorakGithub
- Created: 2022-03-02T07:15:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-01T03:20:09.000Z (over 4 years ago)
- Last Synced: 2025-05-08T21:44:07.681Z (about 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NATS Person
## Configuration File
Configuration file name must be `config.json`
```json
{
"local": {
"nats": ["nats://localhost:4222"]
},
"remote": {
"nats": ["nats://remote.com:4222]
}
}
```
## Payload File
Here a sample of payload file
```json
{
"subject": "nats.subject.sample",
"payload": {
"hello": "world"
}
}
```
## Run
Here a sample how to run
```shell script
python send.py --env local --file sample.json --request-num 100
```
With this command, it will send *100* messages concurrently to NATS using
*sample.json* as payload and using *local* configuration.