Simple demo implementation of GRPC in Csharp under .NET Framework 4.7.2.
Project | Purpose |
---|---|
GRPCDemo2 | Contract - messages, data objects and interfaces definition, protofile |
GRPCClient | Client implementation |
GRPCServer | Server implementation |
- Google.Protobuf, 3.17.2
- Grpc.Core, 2.38.0
- Grpc.Core.Api, 2.38.0
- Grpc.Tools, 2.38.0
- System.Buffers, 4.4.0
- System.Memory, 4.5.3
- System.Numerics.Vectors, 4.4.0
- System.Runtime.CompilerServices.Unsafe, 4.5.2
Consult packages.config.
- proto v. 3 is used in example
- GRPCDemo2 project uses pre-build script for run proto file compilation - check your processor architecture 32/64 (this is not needed in .NET Core project template - improved process out of the box)
- 1 request - 1 reply
- 1 request - N replies
- N requests - N replies
- peerislands: Microservices, gRPC and Protobuf - architecture, history concepts comparison
- GRPC.io: Basics tutorial C#
- Microsoft: Introduction to gRPC on .NET 2021 ASP.NET Core
- Microsoft: gRPC services with C#
- codemartini.com: gRPC .Net Core sample with Stream call