IT Glossary
What is gRPC (gRPC Remote Procedure Calls)?
An open-source framework that lets one service call another service's functions as if they were local, used mainly between microservices and between mobile apps and servers.
- 6
- sections
- 6
- questions answered
gRPC is an open-source remote procedure call (RPC) framework, released by Google in 2015, that lets a program call a function on another server as if it were local, sending Protocol Buffers messages over HTTP/2. The name does not mean “Google RPC”: the official grpc.io FAQ expands it as “gRPC Remote Procedure Calls”, and the letter g takes a new meaning with each release (1.1 “good”, 1.2 “green”). Google ran an internal system called Stubby for over a decade to connect the microservices in its data centers, but Stubby was not based on any standard and was tied to Google's infrastructure. In March 2015, as SPDY, HTTP/2 and QUIC appeared, Google decided to build the next version as open source. gRPC 1.0 shipped in August 2016, and the project was accepted into the Cloud Native Computing Foundation (CNCF) on February 16, 2017. The license is Apache 2.0.
Most discussion of APIs concerns the traffic you can see, a browser or a mobile app talking to a server. gRPC lives in the traffic you cannot: services inside a system calling each other, often many times to serve one customer request, where the overhead of each call is multiplied. Messages travel in a compact binary format rather than as text, defined in advance in a .proto file; the official protobuf documentation describes the format as like JSON, except smaller and faster. Connections are reused and multiplexed over HTTP/2, and client and server code is generated automatically in whichever language each team uses. The interface between two services becomes a checked contract rather than a document somebody hopes is current, so a breaking change is caught at build time in compiled languages instead of at midnight in production. The trade-off is that gRPC is unfriendly to browsers, awkward to inspect by hand, and unnecessary for a system of modest size. Checked on November 18, 2026 against grpc.io.
Why it matters for your business
Speed where internal traffic is heavy
Compact binary messages and reused connections cut latency and bandwidth on the calls that happen many times per transaction.
A strict contract catching errors early
Generated code from a shared interface definition means an incompatible change fails the build in compiled languages rather than surfacing in production.
Services in different languages, no friction
Teams write in whichever language suits their component while the generated clients keep communication consistent between them.
How gRPC works
Everything starts with a .proto file, where you describe the service, the methods that can be called remotely, and the messages they take and return. The protoc compiler, with the gRPC plugin, generates the server interface and a client stub from that file. The server implements the methods; the client calls the stub like a local object, and the stub packs the parameters, sends the request and returns the response. The transport is HTTP/2, so several calls share one connection.
The official documentation defines four kinds of method. Unary: the client sends one request and gets one response, like a normal function call. Server streaming: the client sends a request and reads a stream of messages back. Client streaming: the client writes a stream of messages and the server replies at the end. Bidirectional streaming: both sides send messages on independent streams, and the order of messages in each stream is preserved. The client can also set a deadline: if the server does not answer in time, the call ends with a DEADLINE_EXCEEDED error.
Example: a service described in .proto
The example from the official grpc.io introduction is a greeting service. The Greeter service has one method: rpc SayHello (HelloRequest) returns (HelloReply). The HelloRequest message has one field: string name = 1. The HelloReply message has one field: string message = 1. The number 1 is the field number in the binary format, not a value.
From those few lines, client and server code is generated in each team's language. The official documentation lists C#/.NET, C++, Dart, Go, Java, Kotlin, Node, Objective-C, PHP, Python, Ruby, Rust and Swift, among others. You can have a server in Java and clients in Go, Python or Ruby. That is why the .proto file is worth asking for in any handover of a microservice system: it is the single, checkable description of the interface.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
gRPC vs REST
Transport: gRPC requires HTTP/2; REST is an architectural style, usually over HTTP/1.1 or HTTP/2. Format: gRPC uses binary Protocol Buffers by default and can also work with JSON; REST usually uses JSON text. Contract: in gRPC the .proto file is mandatory; in REST a description such as OpenAPI is optional. Streaming: besides unary calls, gRPC has three streaming modes (server, client, bidirectional); REST is request and response, and needs WebSocket or another mechanism for server push. Errors: gRPC has its own status codes rather than HTTP ones. Browser: REST works directly; gRPC needs gRPC-Web and a proxy, Envoy by default, because no browser API gives the fine-grained control over requests that HTTP/2 needs.
The practical rule: REST at the edge of the system, for public APIs and partner integrations, and gRPC inside, between services. GraphQL is a third option, a query language in which the client shapes the response; it has its own glossary page.
When gRPC makes sense for a business, and when it does not
The official grpc.io pages name four main scenarios: low-latency, highly scalable distributed systems; mobile clients communicating with a cloud server; new protocols that need to be accurate, efficient and language independent; and a layered design that allows extensions such as authentication, load balancing, logging and monitoring. Users named on the site include Square, Netflix, CoreOS, Docker, CockroachDB, Cisco and Juniper Networks.
It usually does not make sense for a small system with a few services, for a public or partner API, or for a website whose front end calls the server directly. In those cases REST stays simpler and can be tested with ordinary tools.
Frequently asked questions
What does gRPC stand for?
gRPC stands for “gRPC Remote Procedure Calls”, a recursive acronym, according to the official grpc.io FAQ. It does not stand for “Google RPC”, although Google created it. RPC itself means remote procedure call: one program calling a function that runs on another server.
When do we choose gRPC and when REST?
Choose gRPC for internal service-to-service traffic at volume, for streaming, and where strict typing across languages matters. Choose REST for anything a browser touches directly, for public and partner APIs, and where the other side wants ordinary testing tools. A common shape is REST at the boundary and gRPC behind it.
What is the difference between RPC and gRPC?
RPC is the general idea of calling a function on another computer as if it were local. gRPC is one concrete RPC framework, created by Google, that adds HTTP/2 transport, Protocol Buffers messages, automatically generated code for several languages and streaming.
Can a browser talk to gRPC directly?
Not natively, because browsers do not expose the low-level control over requests that the protocol requires. The routes are gRPC-Web, which is generally available and goes through a proxy, Envoy by default, or a gateway that presents conventional REST or GraphQL outside while speaking gRPC internally.
What are Protocol Buffers?
The interface definition language and binary format underneath gRPC. You describe messages and service methods in a short .proto file, and a compiler generates the data classes and client stubs for every language you need. The protobuf documentation describes the format as like JSON, except smaller and faster.
Is gRPC faster than REST?
Usually yes for heavy internal traffic, because binary messages are smaller and HTTP/2 lets many calls share one connection. There is no universal factor: the difference depends on message size, network and implementation, so measure it on your own case before deciding.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851