简体   繁体   中英

Cross platform service discovery with consul

I have developed simple micro service using String boot.

I register my service with consul using spring cloud .

Now my question is how another application is written in different language ie. node or PHP consume my service from consul.

You can use Consul HTTP API to get lot of information from Consul (eg 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 for discovery of registered services.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM