Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ranpatterson/GrpcEndpoints
- Owner: ranpatterson
- Created: 2020-03-02T21:35:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-26T14:48:04.000Z (over 4 years ago)
- Last Synced: 2024-08-02T16:55:32.063Z (3 months ago)
- Language: C#
- Size: 704 KB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
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