Project demonstrates different types of gRPC communication patterns implemented in Go:
- Unary RPC
- Server Streaming
- Client Streaming
- Bidirectional Streaming
Repository is structured into client, server, and proto directories.
Make sure you have Go, Protocol Buffers, and gRPC for Go installed.
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latestSet PATH !
Add $GOPATH/bin to your PATH if not already.
Navigate to the server folder and start the gRPC server:
cd server
go run *.goIn a separate terminal, start the client:
cd client
go run *.go- Unary RPC calls
- Server-side streaming
- Client-side streaming
- Bidirectional streaming
- Go 1.18+
- gRPC-Go
- protocol Buffers compiler (
protoc)