https://github.com/bbengfort/rtreq
Template for REQ/ROUTER ZMQ Server
https://github.com/bbengfort/rtreq
Last synced: over 1 year ago
JSON representation
Template for REQ/ROUTER ZMQ Server
- Host: GitHub
- URL: https://github.com/bbengfort/rtreq
- Owner: bbengfort
- License: mit
- Created: 2017-09-01T18:34:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-06T15:04:07.000Z (almost 9 years ago)
- Last Synced: 2025-02-08T17:30:47.617Z (over 1 year ago)
- Language: Go
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZMQ REQ/ROUTER Template
This package is a template for designing asynchronous ZMQ servers with the REQ/ROUTER pattern.
## Quickstart
Install the server/client system using `go get` as follows:
```
$ go get github.com/bbengfort/rtreq/...
```
You should then have the `rtreq` command installed on your system:
```
$ rtreq --help
```
You can run the server as follows:
```
$ rtreq serve
```
And send messages from the client as:
```
$ rtreq send "hello world"
```
Note the various arguments you can pass to both serve and send to configure the setup. Run benchmarks with the `bench` command:
```
$ rtreq bench
```
The primary comparison is `REQ/REP` vs `REQ/ROUTER` sockets.