shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

0ptimize the Grpc plugin method call

Open SaberSola opened this issue 5 years ago • 2 comments

Feature Request

Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is. Ex. I have an issue when [...]

Describe the solution you'd like

A clear and concise description of what you want to happen. Add any considered drawbacks.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Please read the Contribution Guideline before submitting the PR

SaberSola avatar May 15 '21 03:05 SaberSola

I want to solve the issue, my solution is : Client:

  1. Create the method descriptor for the generic service, set the generic method by the request method, set the generic request type, set the generic response type, set the method type.
  2. Generic invoke by method type.

Server:

  1. Export standard GRPC services.
  2. Wrap standard GRPC services to support generic calls. The ServerCALL.Listener proxy is used to generic request, and the ServerCall proxy server returns the generic response.

midnight2104 avatar May 15 '21 04:05 midnight2104

it fix ? if yes , pls close

yu199195 avatar May 24 '21 07:05 yu199195