官术网_书友最值得收藏!

Service discovery

All the APIs exposed by a microservice are accessible via the IP address and port of the host machine on which the microservice is deployed. Since microservices are deployed in a virtual machine or a container that has a dynamic IP, it is quite possible that the IPs and ports that are allocated to the microservice APIs may change over time. Therefore, IP addresses and ports of services should never be hardcoded by the depending microservice. Instead, there should be a common database of all the services that are active for the current application. Such a database of services is called the service registry in microservices architecture and is always kept up to date with the location of the microservices. It keeps the details of all the active microservices including their current IP address and port. Microservices then query this service registry to discover the current location of the required microservices and connect to them directly.

主站蜘蛛池模板: 扎鲁特旗| 巴里| 张掖市| 宝坻区| 湖口县| 兴宁市| 汝南县| 乌拉特前旗| 马山县| 略阳县| 勐海县| 阿尔山市| 石河子市| 荣昌县| 鹤庆县| 怀远县| 许昌县| 临江市| 霍州市| 久治县| 古蔺县| 蚌埠市| 潢川县| 应用必备| 和平县| 聂拉木县| 府谷县| 太保市| 小金县| 辛集市| 上杭县| 中西区| 东阿县| 南木林县| 黔西| 莲花县| 江陵县| 新津县| 静宁县| 黑水县| 安岳县|