grpc / grpc-go

The Go language implementation of gRPC. HTTP/2 based RPC

Home Page:https://grpc.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The API Gateway vision

lhdhtrc opened this issue · comments

Scenes:

  • Unified API service gateway that supports grpc requests and http requests
    The functions that have been implemented so far:
  • grpc proxy grpc (UnknownServiceHandler)
    Current difficulties:
  • The http request is forwarded or converted to the grpc service

I do not know how to solve this problem, the gateway layer is actually not concerned about the pb file, but I can not achieve http conversion grpc service, ask the community whether there is a solution, thank you!

Unfortunately, we do not have an out of the box solution/example that might help you here. I would keep the issue open here to see if someone in the community might be able to help here.

微信截图_20240402084852
My idea is like this, but I can't convert the HTTP request to GRPC's request, I don't know whether should use GRPC client to request gateway GRPC. UnknownServiceHandler, I think it should be converts the HTTP request to GRPC server to gateway GRPC. UnknownServiceHandler

@lhdhtrc -- One second thought, this question would have a better reach if you post it to the larger community via https://grpc.io/community/#join-the-conversation. The reach for the gRPC-go issue list would be limited to the maintainers and the few people actively engaged.

Might be worth reposting some of this content to one of the other media