16. How to create gRPC server project
● VS2019:
● Command line : dotnet new grpc
● Existing project:
○ add package Grpc.AspNetCore
○ Startup.cs: Add gRPC services and endpoint
17. How to create gRPC Client project
Project setup:
1. Install Packages:
● Google.Protobuf
● Grpc.Net.Client
● Grpc.Tools
2. Add Protobuf files reference into .csproj, then build project
Code:
3. Setup channel: var channel = Grpc.channel.ForAddress(...);
4. Call defined API
18. More Topics
● Protobuf definition
● Authentication/Authorization
● Cache
● Rate limiting
● GRPC web
● ….. etc