https://github.com/bararchy/crystalmq
https://github.com/bararchy/crystalmq
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bararchy/crystalmq
- Owner: bararchy
- Created: 2016-12-11T17:45:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-11T17:49:24.000Z (over 9 years ago)
- Last Synced: 2025-02-05T21:37:13.795Z (over 1 year ago)
- Language: Crystal
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About this project
This project is a Message Queue written in Crystal, very similar to NSQ.
## Usage
To run this project you will need three components.
* A Message Router, running with either debug set to true or false
`crystal router.cr false`
* A Message Consumer, with a topic and channel set
`crystal tools/consumer.cr my_topic my_channel`
* A Message Producer, with a topic and message
`crystal tools/producer.cr my_topic "Hello World"`
* If you would like to run the benchmarks, feel free to use tools/meth
```
./meth --consumer # Will benchmark received messags (used in conjuction with producer)
./meth --producer # Will benchmark sent messages (used in conjunction with consumer)
./meth --latency # Will benchmark request latency
```