Quick revision
The short answer
Standardising on gRPC brings typed contracts, efficient encoding, streaming and generated clients across languages, but it costs tooling, harder debugging than JSON, gateways for browsers and partners, and training for every team. The protobuf contracts become a long-lived asset that needs governance, and most large organisations end up with a mixed estate, REST at the edge and gRPC inside, so the real task is to define where each is used. I would decide based on measured performance needs and polyglot requirements, not on fashion.
What to remember
In this answer, we weighed standardising internal calls on gRPC. Its benefits are typed contracts, efficient encoding, streaming and generated clients across languages; its costs are tooling, harder debugging, gateways for browsers and partners, and training. The protobuf contracts become a long-lived asset that needs a repository, ownership and breaking-change checks, and most organisations settle on a mixed estate with clear rules: REST at the edge, gRPC inside. The decision should come from measured performance needs and polyglot requirements, tested in a pilot, not from fashion.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Standardising on gRPC brings typed contracts, efficient encoding, streaming and generated clients across languages, but it costs tooling, harder debugging than JSON, gateways for browsers and partners, and training for every team. The protobuf contracts become a long-lived asset that needs governance, and most large organisations end up with a mixed estate, REST at the edge and gRPC inside, so the real task is to define where each is used. I would decide based on measured performance needs and polyglot requirements, not on fashion.
Why this question is asked
Choosing a standard for internal calls is one of the longest-lived decisions a platform group makes. Thousands of services and clients will be written against it, and changing it later means touching most of them. gRPC is a strong candidate, and it is often promoted with benchmarks that show large speedups. Interviewers ask this leadership question to see whether we can look past the benchmark and weigh benefits, costs and long-term consequences for the whole organisation. In this answer, we will go through what gRPC really gives us, what it costs, why contracts become an asset, how mixed estates work, and how I would make the decision with evidence.
1What gRPC Really Gives Us
The first benefit is a typed contract. Every service is defined in a .proto file, and code is generated from it for servers and clients, so a mismatch between what a client sends and what a server expects is a compile error, not a 400 in production. The second is efficiency: binary protobuf messages are smaller and cheaper to parse than JSON, and HTTP/2 multiplexes many calls on one connection. The third is streaming in both directions, which REST does not offer natively. The fourth, often underrated, is generated clients across languages: a Go, Python or Kotlin team gets a working, consistent client from the same contract, instead of each team writing its own HTTP wrapper.
Built into the protocol are also deadlines and cancellation, which help keep latency under control across call chains. These are real advantages, especially in a polyglot organisation with high call volumes.
2What It Costs
The costs are less visible in a demo. Tooling: every build needs protoc or buf, code generation, a place to publish generated artifacts, and consistent versions of grpc-java and protobuf across services. Debugging is harder: we cannot read a binary payload in a log or replay a call with curl; engineers need grpcurl, server reflection and good tracing. Browsers and partners cannot call gRPC directly, so anything external needs gRPC-Web, a JSON transcoding gateway or a separate REST API.
Operations change too: long-lived HTTP/2 connections need client-side or L7 load balancing, and proxies, API gateways and security tools must understand gRPC. And people: hundreds of engineers who know REST well need training, and for a few years the organisation has two sets of practices. None of these is a reason to refuse gRPC, but together they are a multi-year investment, and the decision should be made knowing their size.
| Area | Benefit | Cost |
|---|---|---|
| Contracts | typed, generated, checked | contract repo and governance needed |
| Performance | smaller payloads, multiplexing | gains small if DB-bound |
| Languages | consistent clients for all | codegen in every build |
| Debugging | - | binary, needs grpcurl and tracing |
| Edge access | - | gRPC-Web or REST gateway |
| People | - | training, two sets of practices |
3Contracts as a Long-Lived Asset
If we standardise on gRPC, the .proto files become one of the most valuable things the organisation owns: an exact, machine-checked description of how every service talks to every other. That is only true if they are governed. We need a central contract repository or registry, versioned packages such as payments.v1, lint rules for naming and style, automated breaking-change checks (buf is the usual tool) on every change, and clear ownership of each package. Deprecation and removal follow a published process, just as with any API.
Treated this way, contracts make large-scale changes easier: we can find every consumer of a field, generate migration reports and evolve safely. Treated carelessly, with files copied between repositories and no checks, they become a source of subtle incompatibilities that are harder to debug than JSON, because a wrongly reused field number silently means something else.
4Mixed Estates: Defining Where Each Is Used
Large organisations rarely end up with one style. A common and stable shape is REST, or GraphQL, at the edge, where browsers, mobile apps and partners need HTTP and JSON, HTTP caching and easy debugging, and gRPC inside, between services, where typed contracts and efficiency pay off. Event streams through a broker sit alongside both.
The failure mode is not having two styles; it is having no rule, so each team picks per service and every pair of services negotiates. So the standard should say where each is used: for example, new internal synchronous APIs use gRPC; anything called by browsers or partners exposes REST, possibly generated from the same proto contract through transcoding; existing REST services migrate only when they change substantially. That gives teams a clear default without a forced rewrite.
- Browsers, mobile, partnersHTTP and JSON
- Edge: REST or GraphQL APIscaching, easy debugging, public contracts
- Internal: gRPC servicesproto contracts, generated clients, deadlines
- Events: broker topicsasynchronous integration
4 layers, from the top down. Step through them one at a time.
5Deciding on Evidence, Not Fashion
The decision should start from the organisation's real needs. Two questions matter most. Do we have performance needs that JSON over HTTP is actually failing to meet, for example high-volume internal calls where serialisation shows up in CPU profiles, or chatty services where latency budgets are tight? And are we polyglot enough that generated clients across languages save real effort? An organisation with 300 Java services that are mostly database-bound and rarely call each other has a weak case; one with 2,000 services in five languages making millions of internal calls per second has a strong one.
Then we test it. We pick two or three internal APIs with high traffic, implement them with gRPC, and measure latency, CPU, developer effort and operational issues for a quarter, while building the platform pieces: contract repository, buf checks, load balancing and observability. If the results hold up, we make gRPC the default for new internal APIs and let existing REST services move when they change. If the gains are small, we invest in better REST contracts, such as OpenAPI with generated clients, which gives much of the type safety at a fraction of the cost.
- Measured performance problem with JSON?CPU in serialisation, tight latency budgetsYesStrong reasonNoWeaker reason
- Many languages need clients?YesStrong reasonNoOpenAPI codegen may suffice
- Pilot 2-3 high-traffic internal APIsbuild platform pieces in parallel
- Gains outweigh costs after a quarter?YesDefault for new internal APIsNoImprove REST contracts instead
4 steps in order. Play them, or step through them one at a time.
6Follow-up questions
Would you migrate existing REST services to gRPC?
Only when they change substantially for other reasons, or when a specific service has a measured performance or contract problem. A big-bang migration costs years of effort and risk for a benefit most stable services do not need. Defaults for new work, plus opportunistic migration, get most of the value.
How do you keep debugging practical with binary payloads?
Enable server reflection in non-production so grpcurl and similar tools can call any method with JSON input, log calls in a decoded form with redaction, and rely on distributed tracing with method names and status codes. Teams that invest in this tooling early report much less friction.
Can REST and gRPC share one contract?
Partly. Google's HTTP annotations in a .proto file can describe REST mappings, and gateways or transcoding proxies can expose a gRPC service as REST and JSON from the same definition. That keeps one source of truth, though the REST API then follows the shape of the gRPC service, which is not always what external consumers want.
7Conclusion
In this answer, we weighed standardising internal calls on gRPC. Its benefits are typed contracts, efficient encoding, streaming and generated clients across languages; its costs are tooling, harder debugging, gateways for browsers and partners, and training. The protobuf contracts become a long-lived asset that needs a repository, ownership and breaking-change checks, and most organisations settle on a mixed estate with clear rules: REST at the edge, gRPC inside. The decision should come from measured performance needs and polyglot requirements, tested in a pilot, not from fashion.
Open with
I would not answer yes or no straight away, because this decision lasts a decade. gRPC gives real benefits: typed contracts with generated clients and servers, so mismatches fail at compile time; compact binary encoding over multiplexed HTTP/2; streaming in both directions; deadlines in the protocol; and consistent clients for every language.
Then, if they want more
But it has costs: protoc or buf in every build, published artifacts, harder debugging because payloads are binary, gateways or gRPC-Web for browsers and partners, L7 or client-side load balancing, and training for many engineers.
If we adopt it, the proto contracts become a long-lived asset, so they need a central repository, versioned packages, owners and automated breaking-change checks; without that governance they become a source of subtle breakage.
I also expect a mixed estate: REST or GraphQL at the edge for browsers and partners, gRPC inside between services, so the standard should say clearly where each is used rather than pretending one style will win everywhere.
And I would decide on evidence: do we have measured performance problems with JSON, and are we polyglot enough for generated clients to save real work?
I would pilot it on two or three high-traffic internal APIs for a quarter while building the platform pieces, and only then make it the default for new internal APIs, migrating existing REST services when they change for other reasons.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Framework reference, Spring Web MVC
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Should a large organisation standardise on gRPC for internal service-to-service calls...": https://scrivio-interview-library.netlify.app/spring-boot/web-other/7deba35f9a/