A simple gRPC application built with Go to learn the fundamentals of:
- Protocol Buffers (protobuf)
- gRPC Services
- Client-Server Communication
- Code Generation using
protoc - Unary RPC Calls
grpc-learning/
│
├── client/
│ └── main.go
│
├── server/
│ └── main.go
│
├── proto/
│ ├── calculator.proto
│ ├── calculator.pb.go
│ └── calculator_grpc.pb.go
│
├── go.mod
└── README.md
- Calculator Service
- Add two numbers using gRPC
- Protocol Buffer based communication
- Auto-generated Go code from
.protodefinitions
- Go
- gRPC
- Protocol Buffers
go mod tidygo run server/main.gogo run client/main.goThis project was created to understand:
- How gRPC works
- How Protocol Buffers generate code
- Client-server communication using RPC
- Building services in Go using gRPC
Shreyas G Gowda