Fundamentals · Hard · Free
When would you pick gRPC over REST for fresher projects?
FresherFundamentalsComputer Networks
gRPC vs REST
For When would you pick gRPC over REST for fresher projects, interviewers listen for a crisp definition, how the pieces interact in a real system, and one trade-off or failure mode you have seen or would guard against.
| REST+JSON | gRPC+Protobuf | |
|---|---|---|
| Contract | OpenAPI optional | Strong .proto schema |
| Transport | HTTP/1.1 common | HTTP/2 multiplex |
| Browser | Native | Needs grpc-web |
| Best for | Public APIs | Internal microservice RPC |
Campus project: REST outward, gRPC internal if team knows protobuf.