gRPC
gRPC is a remote procedure call framework that allows services to communicate through strongly typed methods over HTTP/2. In this course, it exposes the Go order domain to other services using protobuf-generated clients, servers, and messages.
Minimal example
conn, err := grpc.NewClient(
"localhost:9090",
grpc.WithTransportCredentials(insecure.NewCredentials()),
)
if err != nil {
return err
}
defer conn.Close()Learn this concept
Lesson 7.12 · Protobuf contracts in GoUsed in exercises
Exercise 7.13 · gRPC order servicePrerequisite conceptsProtocol Buffers