There is quite a lot of article around gRPC off late. This repository will introduce you to gRPC, what it actually is, and how it compares to REST Protocol to get data from an ASP.NET Core WebApi using gRPC protocol.
##Here are the topics covered.
- Introducing gRPC
- REST vs gRPC
- What are Protocol Buffers?
- Streaming Request and Response
- Avoiding conflict of WebApi and gRPC endpoints
- Getting used to the gRPC Project Structure
- Building a gRPC Service in an ASP.NET Core WebApi
- Building gRPC Client in an ASP.NET Core WebApi
If using Visual Studio just compile the solution and run two projects simultaneously using multiple startup projects. When two web api projects run go to StoreApi swagger page and try the controller endpoints. You will receive the data from ProductApi project using gRPC communication. Using VS Code simply build and run two projects separately and then navigate to StoreApi swagger page and repeat the above.
If you like or are using this project to learn, please give it a star. Thanks!
Please use Issues to report actual bugs in the code. If you have questions, please ask them on twitter (mention @shahabfar).