Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GRPC Service Discovery

Given the address of a GRPC service at, say, ipv4:127.0.0.1:25000, are there any standardized queries or tools I can use to discover what GRPC requests the service is capable of receiving?

e.g. I'm looking for something like:

./magic-grpc-service-tool 127.0.0.1:25000
> service Greeter {
>    rpc Greet(HelloMessage) returns (HelloResponse) {}
> }
like image 359
C. Reed Avatar asked May 30 '16 22:05

C. Reed


People also ask

What are gRPC services?

gRPC is a robust open-source RPC (Remote Procedure Call) framework used to build scalable and fast APIs. It allows the client and server applications to communicate transparently and develop connected systems. Many leading tech firms have adopted gRPC, such as Google, Netflix, Square, IBM, Cisco, & Dropbox.

Is gRPC and RPC same?

gRPC is a modern open source high performance Remote Procedure Call (RPC) framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking and authentication.


1 Answers

Update: the reflection service is supported across the various languages and grpc CLI is able to consume it.

At the moment, no. We will be adding server reflection to the various languages, but the support has to be added to each individually. Once server reflection is supported, the grpc CLI will be enhanced to use it and will be the "standard tool" to use.

like image 53
Eric Anderson Avatar answered Oct 19 '22 12:10

Eric Anderson