The API style you choose shapes how quickly clients can be built, how easy the system is to cache and secure, and how much tooling you need. There is no single best answer, but there are good defaults.
REST
Resource-based URLs, HTTP methods and JSON. Every developer and tool understands REST, it works well with HTTP caching and it is the safest choice for public and partner APIs. Its weakness is chattiness: a screen may need several requests, or responses may carry more data than needed.
GraphQL
Clients ask for exactly the data they need in one query. GraphQL shines when several front ends, such as web, iOS and Android, need different shapes of the same data. It moves complexity to the server: you need query cost limits, authorisation on every field and a different approach to caching.
gRPC
Binary messages defined with Protocol Buffers, sent over HTTP/2, with generated client code in many languages. It is fast and strongly typed, which suits calls between services inside your platform. Browsers need a proxy to use it, so it is rarely the first choice for public APIs.
A sensible default
- REST for public and partner APIs
- GraphQL or a backend-for-frontend when several clients need different data
- gRPC between internal services where performance matters
Our engineers and consultants write about what they see in real projects. Have a question about your own systems?






