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

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.

主站蜘蛛池模板: 会理县| 沧州市| 阜新市| 浏阳市| 通许县| 塔城市| 溆浦县| 高清| 浦江县| 疏勒县| 杭锦旗| 桐乡市| 平度市| 重庆市| 南宫市| 绥芬河市| 九寨沟县| 库车县| 合阳县| 上栗县| 平顺县| 抚远县| 班玛县| 绵竹市| 盘山县| 淮滨县| 林州市| 新郑市| 海丰县| 漳平市| 射阳县| 汉阴县| 绥江县| 天津市| 新和县| 房山区| 莒南县| 延安市| 颍上县| 班戈县| 威海市|