Spring / Spring gRPC Interview Questions
When would you choose gRPC over REST for a new Spring microservice, and when would you stick with REST?
| Favor gRPC | Favor REST/JSON |
| Internal service-to-service calls you control on both ends | Public APIs consumed by browsers or third parties |
| Need for streaming (server, client, or bidirectional) | Need for easy manual inspection (curl, browser dev tools) |
| Strict, versioned, contract-first schemas | Broad, low-friction tooling and client ecosystem support |
| Performance-sensitive, high-throughput internal traffic | Simplicity for CRUD-style public resource APIs |
In practice, many systems use both: gRPC on the internal service mesh for speed and strict contracts, with a REST or GraphQL gateway translating incoming public traffic into internal gRPC calls at the edge.
More Related questions...