https://github.com/aleitner/grpc-bidirectional-streaming-example
example for creating a grpc bidirectional stream
https://github.com/aleitner/grpc-bidirectional-streaming-example
bidirectional golang grpc stream
Last synced: 3 months ago
JSON representation
example for creating a grpc bidirectional stream
- Host: GitHub
- URL: https://github.com/aleitner/grpc-bidirectional-streaming-example
- Owner: aleitner
- Created: 2020-02-17T10:45:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T11:52:02.000Z (about 6 years ago)
- Last Synced: 2024-11-05T07:37:20.058Z (over 1 year ago)
- Topics: bidirectional, golang, grpc, stream
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grpc-bidirectional-stream
Provide Example `client` and `server` code for bidirectional streaming using grpc.
## Dependencies
* protoc-gen-go
```bash
go get -u github.com/golang/protobuf/protoc-gen-go
```
## Build
### Protobuf
```bash
cd pkg/proto
protoc *.proto --go_out=plugins=grpc:.
```
## Run
### Server
* Run the server process
```bash
go run cmd/server/main.go
```
### Client
* Interact with the server process
```bash
go run cmd/client/main.go
```