shabunin / grpc-api-gw

gRPC-proxy one-to-many with Reflection support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grpc-api-gw

This is experimental/researching project.

The purpose is to make use of grpc-proxy module and reflection feature to make grpc api-gateway or you call it proxy with zero configutarion. All is needed - grpc reflection enabled and the proxy will automatically find methods for every connection.

Article in russian with some explanations can be found at:

https://habr.com/en/post/645433/

try in action

first, build docker-compose:

cd example
docker-compose build
docker-compose up

It will start three services: echo, greeter and our proxy.

then connect with evans to proxy

evans --host localhost --port 42001 -r

now you can select appropriate package, service, call methods.

You can connect to each service separately as well(use ports 50051 and 50052).

based on:

About

gRPC-proxy one-to-many with Reflection support


Languages

Language:Go 98.5%Language:Dockerfile 1.5%