ASP.NET Core & Web API (50 Qs)•Part 3: Distributed Systems, Kestrel Internals & Scalability (25 - 35)
How does gRPC work in .NET and when is it preferred over REST?
senior LevelSystem DesigngRPCMicroservices
In Simple Words: A high-performance RPC framework using Protocol Buffers (protobuf) binary serialization over HTTP/2:
- 7–10x faster serialization and significantly smaller payloads than JSON.
- Strongly typed contracts via
.protofiles. - Supports bi-directional streaming.
- Ideal for internal service-to-service microservice communication.