api7 / grpc_server_example

Apache License 2.0
15 stars 14 forks source link

feat: enable grpc server reflection #13

Closed bisakhmondal closed 2 years ago

bisakhmondal commented 2 years ago

At present we are using a proto definition of this repository to feed the info about public services and methods into grpcurl. But this is also an extra layer of overhead as this requires an extra checkout of this repository.

gRPC Server Reflection provides information about publicly accessible gRPC services on a server and assists clients at runtime to construct RPC requests and responses without precompiled service information.

now simply grpcurl -plaintext -d 'data' <server> <pkg.service.method> is sufficient.

https://github.com/apache/apisix/issues/3601