GRPC服务发现 [英] GRPC Service Discovery

查看:210
本文介绍了GRPC服务发现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出 GRPC 服务的地址,例如ipv4:127.0.0.1:25000,是否存在任何标准化查询或我可以用来发现服务可以接收哪些GRPC请求的工具?

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) {}
> }

推荐答案

更新:反射服务受多种语言支持,grpc CLI可以使用它.

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

此刻,没有.我们将在各种语言中添加服务器反射 ,但必须将支持单独添加到每个.一旦支持服务器反射, grpc CLI 将得到增强,使其可以使用,并且将成为使用的标准工具".

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.

这篇关于GRPC服务发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆