Web apps & software

What is gRPC?

gRPC is an open-source framework, originally from Google, for making calls between services. You define methods and message types in a .proto file, and gRPC generates client and server code that exchanges compact binary messages over HTTP/2.

How it differs from REST

A REST API exposes resources at URLs and usually sends JSON, which is human-readable and works from any browser. gRPC exposes typed functions, such as GetQuote(request), and sends Protocol Buffers, which are smaller and faster to parse. The contract is strict: a client and server generated from the same .proto file agree on every field, which catches mismatches at build time.

Where it shines

  • Internal traffic between microservices where speed and strict contracts matter.
  • Streaming: gRPC supports server, client and two-way streams, useful for live telemetry or location feeds.
  • Polyglot teams, since code generation covers Go, Java, Python, C#, Node.js, Dart and more.

Where REST still wins

Public APIs for partners, webhooks and anything called directly from a web browser. Browsers cannot speak native gRPC, so web clients need gRPC-Web or a proxy. Debugging binary traffic also needs extra tools compared with reading JSON in a terminal. Many systems use both: gRPC inside, REST or GraphQL at the edge.

Questions, answered

Officially it changes meaning with each release; it is not an abbreviation of Google.

Yes. Android, iOS and Flutter all have gRPC client libraries.

By the Stegnor team · Updated