https://github.com/wrfly/grpc-echo
Simple gRPC echo example
https://github.com/wrfly/grpc-echo
grpc grpc-example grpc-lb
Last synced: 2 months ago
JSON representation
Simple gRPC echo example
- Host: GitHub
- URL: https://github.com/wrfly/grpc-echo
- Owner: wrfly
- Created: 2018-12-08T17:50:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-14T02:54:07.000Z (about 1 year ago)
- Last Synced: 2025-03-14T03:30:00.325Z (about 1 year ago)
- Topics: grpc, grpc-example, grpc-lb
- Language: Go
- Size: 87.9 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grpc-echo
This is a simple gRPC Client/Server daemon.
Use `go mod vendor` to download the dependencies.
There are several commands in Makefile:
- `make pb`: generate proto-buff codes,
you may don't need it since I have already generated them
unless you want to add new commands in the echo service.
- `make build`: build the package
- `make server`: run a *server* listens on localhost:5001
- `make client`: run a *client* connects to localhost:5001
- `make server-1`: run a *server* listens on localhost:5001
- `make server-2`: run a *server* listens on localhost:5002
- `make client-12`: run a *client* connect to localhost:5001 and localhost:5002
- `make servers 1201,1202,1203`: run a *server* listens on these ports
- `make clients localhost:1201,localhost:1202,localhost:1203`: run a *client* connect to these servers