# gRPC

> A fast way for one service to call another. Its messages are small.

**Field:** Software Development  
**Category:** APIs  
**Also known as:** gRPC API, Google RPC, gRPC-Web

## Think of it like

Think of it like sending notes in a secret shorthand. Both sides know the code, so notes are tiny and fast.

## Definition

gRPC is a fast way for services to call each other's functions. Google made it and opened it to everyone in 2015. You describe each service and its messages in a .proto file. Tools turn that file into ready code for many languages. Messages are sent in a small binary format called Protocol Buffers, over HTTP/2. It is fast and strict, so firms use it between their own services.

## Example

Jack's 12 back-end services talk to each other with gRPC. One .proto file keeps every service's Go and Python code in step.

## Why it matters

Its messages are smaller and faster than JSON. The shared file also catches wrong fields before the code runs.

## Common mistake

Using gRPC straight from a web page. Browsers need a helper layer, so public APIs usually stay REST.

## Three principles

- **A shared .proto file.** Describes every call.
- **Binary messages.** Small and fast.
- **Service to service.** Its usual home.

## Related terms

- [Remote Procedure Call (RPC)](https://learn.benibix.com/term/development/remote-procedure-call)
- [REST API](https://learn.benibix.com/term/development/rest-api)
- [Application Programming Interface (API)](https://learn.benibix.com/term/development/api)
- [HyperText Transfer Protocol (HTTP)](https://learn.benibix.com/term/infrastructure/http)
- [Protocol Buffers (Protobuf)](https://learn.benibix.com/term/development/protocol-buffers)

## Told apart from

- [gRPC vs tRPC](https://learn.benibix.com/compare/grpc-vs-trpc): People think tRPC is gRPC for TypeScript, and it is not. gRPC sends small binary messages between services written in many languages. tRPC sends JSON, and it only works when both ends are TypeScript and share the same types. The names differ by one letter, and the jobs differ a lot.
- [REST API vs gRPC](https://learn.benibix.com/compare/rest-api-vs-grpc): People think gRPC is just a faster REST, and it is not. REST gives each thing an address and uses HTTP methods on it, with JSON most people can read. gRPC calls named functions and sends packed bytes. It is faster between services, but a browser cannot call it without help.

---

Source: https://learn.benibix.com/term/development/grpc
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
