https://github.com/thbkrkr/oq
Produce and consume data in the OVH Paas Queue
https://github.com/thbkrkr/oq
Last synced: 5 months ago
JSON representation
Produce and consume data in the OVH Paas Queue
- Host: GitHub
- URL: https://github.com/thbkrkr/oq
- Owner: thbkrkr
- Created: 2016-04-23T23:17:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-10T12:59:33.000Z (about 10 years ago)
- Last Synced: 2025-03-02T17:48:21.410Z (over 1 year ago)
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# oq
Command line tools to produce and consume data in the OVH Paas Queue.
## Install
```
curl https://github.com/thbkrkr/oq/releases/download/0.1/oq > /usr/local/bin/oq \
&& chmod +x /usr/local/bin/oq
```
## Getting started
`oq` needs 3 arguments: `-b -k -t `.
### Consume
To consume, just start oq:
```
oq -b .queue.ovh.net:9092 -k abcddefgh-0I9H8G7F6E5D4C3B2A1 -t myprefix.mytopic
```
### Produce
To produce, pipe your data in oq:
```
echo '{"date": "$(date %s)", "message": "'$RANDOM'"}' | \
oq -b .queue.ovh.net:9092 -k abcddefgh-0I9H8G7F6E5D4C3B2A1 -t myprefix.mytopic
```
## Example
