Skip to content

Example of migrating a service to Go and gRPC using grpc-gateway and httputil.ReverseProxy

License

Notifications You must be signed in to change notification settings

idubinskiy/http-to-grpc-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-to-grpc-gateway

Example of using grpc-gateway and httputil.ReverseProxy to migrate a service to Go and gRPC by automatically proxying requests for unimplemented methods to the old service.

GopherCon 2019 Lightning Talk

GopherCon 2019 Lightning Talk: Igor Dubinskiy - Interatively Migtrating an HTTP Svc to Go

Requirements

Running

Node

$ cd node
$ npm install
$ npm start

Go

$ cd go
$ go run main.go

Modifying

Node

  1. Modify node/index.js.

Go

  1. Modify go/hello/hello.proto.
  2. In go/hello, run go generate.
  3. Implement handler in go/main.go.

About

Example of migrating a service to Go and gRPC using grpc-gateway and httputil.ReverseProxy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published