Reflection support update?

220 views
Skip to first unread message

Christian Svensson

unread,
Aug 24, 2016, 1:43:42 PM8/24/16
to grpc. io

Hi,

Congrats yet again at reaching 1.0!

Once upon a time reflection support was aimed to be part of 1.0, and as far as I can tell it isn't. That's fine, but there as been very few updates on this.

Could we have an update on how that's progressing?

To elaborate: what I'm asking about is to be able to explore and call gRPC methods without knowing anything about the server

Thanks,

Christian Svensson

unread,
Sep 1, 2016, 2:26:49 AM9/1/16
to grpc. io
Ping!

Mark D. Roth

unread,
Sep 1, 2016, 10:23:31 AM9/1/16
to Christian Svensson, grpc. io, Yuchen Zeng
Yuchen, can you provide status on server reflection?

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CADiuDAQtOuiweBqvXxcnSYJ%3Dgff7yjBDOHRXnWt5TZhpPiaEXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Mark D. Roth <ro...@google.com>
Software Engineer
Google, Inc.

Yuchen Zeng

unread,
Sep 2, 2016, 6:23:28 PM9/2/16
to Mark D. Roth, Christian Svensson, grpc. io
Hi Christian,

The alpha version of server reflection has been provided in C++ and Go. Its interface is defined in reflection.proto. To enable reflection in a C++ server,  we need to link the reflection library to the binary like this. We also provide a descriptor database that could be used in client side to fetch server protos.

Server reflection in other languages may come later. A server reflection example in C++ will be added shortly.

Thanks,
-Yuchen

Christian Svensson

unread,
Sep 9, 2016, 3:51:45 AM9/9/16
to Yuchen Zeng, Mark Roth, grpc. io

Thank you Yuchen -- looking forward to it!

Are there any plans of adding reflection support to the gRPC client? It would be a great thing to have a "stubby"-like tool that people could just download or apt-get to start calling services.

Yuchen Zeng

unread,
Sep 9, 2016, 10:04:48 PM9/9/16
to Christian Svensson, Mark Roth, grpc. io
gRPC CLI already supports reflection. Instructions on how to build and use it can be found at github.com/grpc/grpc/blob/master/doc/command_line_tool.md
Currently it only has 'call' command and supports unary calls. More commands and streaming call support will come soon.

Thanks,
-Yuchen 
Reply all
Reply to author
Forward
0 new messages