gRPC

gRPC is an open-source framework for implementing APIs that uses HTTP/2. It is a cross-platform high performance remote procedure call framework. gRPC differs from RPC in a number of ways, but the most important of these is that gRPC supports many different programming languages and allows the sender or the receiver to be written in an entirely different language than the other if needed. This is accomplished by communicating using Protobuf data.

There are also two tools that have been developed to automatically generate Go code to write and read protobufs called protoc-gen-go and protoc-gen-go-grpc. These can be installed with the following:

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
This page was last updated: 2025-01-09 Thu 13:31. Source