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

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.

主站蜘蛛池模板: 商都县| 怀远县| 新昌县| 安丘市| 苏州市| 乌鲁木齐县| 江达县| 唐山市| 龙山县| 津市市| 开江县| 宝兴县| 临澧县| 伊宁市| 临海市| 五指山市| 通海县| 富顺县| 禹州市| 郑州市| 枣庄市| 修武县| 新绛县| 日喀则市| 南丹县| 大竹县| 天全县| 霍邱县| 正定县| 库尔勒市| 福海县| 县级市| 白朗县| 九台市| 龙门县| 张家港市| 古交市| 永吉县| 万盛区| 彰化市| 定结县|