https://github.com/mdub/vmq-fun
https://github.com/mdub/vmq-fun
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdub/vmq-fun
- Owner: mdub
- Created: 2018-03-13T22:18:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-08T11:44:59.000Z (about 7 years ago)
- Last Synced: 2025-01-03T13:17:19.155Z (5 months ago)
- Language: Shell
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vmq-fun
A test-rig for [VerneMQ](https://vernemq.com/).
I'm running `vernemq` in a Docker container, and poking at it via [ruby-mqtt](https://github.com/njh/ruby-mqtt).
Running `auto/dev` will start a "vernemq" container, then drop you into a interactive "dev" environment, suitable for running the test scripts.
`q` is the entrypoint. Generate a message as follows:
root@dev:/work# echo hello | q pub firehose
To generate _lots_ of messages, use the `timestamps` script:
timestamps | q pub firehose
Then (in _another_ `auto/dev` window), subscribe to messages like this:
root@dev:/work# q sub firehose
You can monitor the `vernemq` container, in a lo-fi way, with `auto/vmq-monitor`.
Enjoy!