.NET gRPC - Deep Dive
summary
Explains how .NET implements gRPC end to end: proto3 files generate C# types, Grpc.Net.Client + Google.Protobuf + Grpc.Net.ClientFactory make clients, and services run on HTTP/2 with binary protobuf payloads for unary, server, client and bidirectional streaming. Demos show a server and four console clients working (streams travel over a single TCP connection), JSON transcoding via Grpc.AspNetCore.GrpcJsonTranscoding exposes browser-friendly endpoints, retries and hedging/retry policies execute as configured, and client-side load balancing (static resolver + round robin) actually routes to multiple instances; all calls are POST so URL caching isn’t available.
AI-written summary · about
chapters (17)
- 0:00.NET gRPC intro
- 7:37What is gRPC
- 12:19Protocol Buffers
- 16:14gRPC streaming
- 19:29Live demo setup
- 23:23Service methods
- 27:43Consuming gRPC
- 32:13Unary demo
- 33:56Status codes
- 36:32Metadata headers
- 38:41gRPC security
- 41:16Request limits
- 43:27Transcoding to REST
- 48:08Retry policies
- 52:43Client load balancing
- 57:02Benefits and trade-offs of using gRPC
- 59:09Summary








