Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

gRPC

1 min read
Pronunciation
[guh‑RPC]
Analogy
gRPC is like a high-speed rail system using standardized tracks (HTTP/2) and compact train cars (protobuf messages) for fast, reliable communication between services.
Definition
A high‑performance, open‑source RPC framework using Protocol Buffers for efficient binary serialization and HTTP/2 for transport.
Key Points Intro
gRPC enhances RPC with modern features:
Key Points

Protobuf schemas: Defines services and messages in .proto files.

Streaming: Supports unary, server, client, and bidirectional streams.

HTTP/2 transport: Enables multiplexing, flow control, and header compression.

Code generation: Auto‑generates client and server stubs in multiple languages.

Example
A blockchain indexing service exposes a gRPC API; clients use generated Go stubs to subscribe to new block events via a server‑streaming RPC.
Technical Deep Dive
Developers define services in .proto with RPC methods. The protoc compiler generates code for client/server. gRPC uses HTTP/2 frames for framing and multiplexing. Protobuf messages are binary‑encoded for efficiency. TLS is supported natively, and interceptors enable middleware for authentication and logging.
Security Warning
Ensure TLS is enforced and validate client certificates to prevent unauthorized access.
Caveat
Binary protocol may complicate debugging compared to text‑based JSON‑RPC.

gRPC - Related Articles

No related articles for this term.