Skip to content

Example of how to setup GRPC and the grpc gateway and run it on the same port

License

Notifications You must be signed in to change notification settings

dhrp/grpc-rest-go-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc-rest-go-example

In this repository we show an example of how to make a service expose both a REST API and a gRPC API on the same port.

This repository belongs together with an article. The focus for this example is to get it to work on the same port.

On the master branch we show an approach using the GRPC-Gateway, a project to auto-generate HTTP endpoints for gRPC protobuf definitions.

On the nogateway branch we show an alternative approach without the auto-code generation, and using CMUX, a way to share a TCP port between different protocols.

About

Example of how to setup GRPC and the grpc gateway and run it on the same port

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published