使用 consul 进行跨平台服务发现
Cross platform service discovery with consul
我使用 String boot 开发了简单的微服务。
我用 consul using spring cloud 注册我的服务。
现在我的问题是另一个应用程序是如何用不同的语言编写的。节点或 PHP 从 consul 使用我的服务。
您可以使用 Consul HTTP API to get lot of information from Consul (e.g. about registered services as well). To simplify the usage of it there are lot of clients and sdks listed here (there are also libs for PHP). Also you can use DNS Interface 来发现已注册的服务。
我使用 String boot 开发了简单的微服务。
我用 consul using spring cloud 注册我的服务。
现在我的问题是另一个应用程序是如何用不同的语言编写的。节点或 PHP 从 consul 使用我的服务。
您可以使用 Consul HTTP API to get lot of information from Consul (e.g. about registered services as well). To simplify the usage of it there are lot of clients and sdks listed here (there are also libs for PHP). Also you can use DNS Interface 来发现已注册的服务。