Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ranpatterson/GrpcEndpoints

Sharing gRPC ProtoBuff contracts using an endpoint
https://github.com/ranpatterson/GrpcEndpoints

Last synced: 5 days ago
JSON representation

Sharing gRPC ProtoBuff contracts using an endpoint

Awesome Lists containing this project

README

        

# Sharing gRPC ProtoBuff contracts using an endpoint

gRPC services require a service contract usually defined using the Protocol Buffer Language in proto files. The service contract is then used to generate your C# (or language of your choice) server side classes and your client side proxies. Sharing these proto contract files is necessary for generating these classes. However, there is no easy way to share these files other than copying them from the server to the client. Sharing files like this can be especially difficult in a Microservices architecture where there can be many different clients developed by many different teams. This repository shows how to setup the ASP.NET Core middleware to add your ProtoBuf files and an endpoint.

For a full description see the [Premier Developer Blog Post](https://devblogs.microsoft.com/premier-developer/sharing-grpc-protobuf-contracts-using-a-rest-endpoint/)

View the [Middlware](https://github.com/ranpatterson/GrpcEndpoints/tree/Middleware) branch for an implementation that replaces the *Startup.Config()* code with a Middleware Extension method