gRPC: High-Performance RPC

Shriira Press

Preface

Call remote methods like local functions — fast, typed, and cross-language. Master gRPC, Protocol Buffers, and HTTP/2 for modern service communication.

Welcome to gRPC: High-Performance RPC.

gRPC is a high-performance, open-source, universal RPC framework that makes calling a method on a remote service as simple as a local function call — efficiently and across languages. This free book teaches it from the ground up: the service-communication problem and what gRPC is, RPC and the landscape (gRPC vs REST), Protocol Buffers (the IDL and binary serialization), defining services (.proto contracts), HTTP/2 (the transport), the four RPC types and streaming (unary, server, client, bidirectional), building clients and servers (code generation, cross-language), errors/deadlines/metadata (robust communication), security/interceptors/advanced features (TLS, mTLS, middleware, load balancing), and gRPC in practice (when to use it, gRPC-Web, the ecosystem). Ten focused chapters with clear diagrams that demystify modern, efficient, strongly-typed, cross-language service communication — define a contract, generate code, and call remote methods like local ones.

This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.

A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.

We hope it serves you well.

— Shriira Press

Contents

  1. Chapter 1 — What gRPC Is
  2. Chapter 2 — RPC and the Communication Landscape
  3. Chapter 3 — Protocol Buffers
  4. Chapter 4 — Defining Services
  5. Chapter 5 — HTTP/2: The Transport
  6. Chapter 6 — The Four RPC Types and Streaming
  7. Chapter 7 — Building Clients and Servers
  8. Chapter 8 — Errors, Deadlines, and Metadata
  9. Chapter 9 — Security, Interceptors, and Advanced Features
  10. Chapter 10 — gRPC in Practice
0%
1/1