ghgh
May 19, 2023, 2:06am
1
Hi Team.
Is it possible to transform http rest api to grpc through tyk?
(like grpc-gateway)
I found some documentations about grpc(ex. grpc proxy, grpc plugin)
I don’t think that’s what I was looking for
When the client sends the request in http json format, I wonder if it is possible to do grpc communication with grpc server, target(=upstream) url
Thanks for your support
leon
May 19, 2023, 7:49am
2
Nothing built-in for this, but there are go libraries which can be natively used in Tyk Go plugins GitHub - grpc-ecosystem/grpc-gateway: gRPC to JSON proxy generator following the gRPC HTTP spec
We also have in plans Universal Data Graph gRPC connector (e.g. GraphQL → gRPC).
This grpc-gateway will create a rest webserver, so the flow would be:
“client → tyk api gateway → grpc-gateway-webserver → grpc wbserver” ?
This will add one more hop. Am I missing something ? Do we have any other solution ?