Advanced Vocabulary #grpc#protobuf#api

gRPC & Protocol Buffers Vocabulary

5 exercises — Practice gRPC and Protobuf vocabulary in English: .proto file, message types, field numbers, stubs, channels, streaming RPC patterns, status codes, interceptors, and deadlines.

Core gRPC/Protobuf vocabulary clusters
  • Protobuf: .proto file, message, field, field number, scalar types, oneof, repeated, map, enum, reserved
  • gRPC concepts: service definition, RPC method, stub (client), channel, server, metadata
  • Streaming: unary RPC, server streaming, client streaming, bidirectional streaming
  • Operations: status codes (OK, UNAVAILABLE, DEADLINE_EXCEEDED), interceptor, deadline/timeout, health check protocol
0 / 5 completed
1 / 5
A backend engineer introduces gRPC to a team migrating from REST:
"gRPC is a high-performance RPC framework from Google. Instead of JSON over HTTP/1.1, we use Protocol Buffers for serialization and HTTP/2 for transport. You define your service and messages in a .proto file — this is the contract. The protoc compiler generates client stubs and server interfaces in your language of choice. The stub is what the client calls — it looks like a local function call but actually makes a network RPC. The channel is the connection to the server, managing HTTP/2 multiplexing, load balancing, and TLS."
What is a stub in gRPC and how does it relate to the .proto file?