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

Service registry

The service registry acts as a database of microservices. It must have a dedicated static IP address or a fixed DNS name that must be accessible from all the clients, as shown in the following diagram. Since all the clients depend on a service registry to look up the target services, it also becomes a single point of failure for the entire microservices architecture. Therefore, the implementation of the service registry must be extremely lightweight and should support high availability by default. Some common tools that can be used as a service registry are Apache Zookeeper (http://zookeeper.apache.org/), etcd (https://github.com/coreos/etcd), and consul (https://www.consul.io/):

To keep the registry up to date, microservices should either implement the startup/shutdown event to register/deregister with the service registry themselves or there should be an external service configured to keep track of services and keep the registry up to date. Some orchestration tools, such as Kubernetes (https://kubernetes.io/), support service registry out of the box and maintain the registry for the entire infrastructure.

Clients must cache the location of frequently used microservices to reduce dependency on the service registry, but the location must be synced periodically with the service registry for up-to-date information.
主站蜘蛛池模板: 定结县| 鄄城县| 正安县| 盱眙县| 民丰县| 六枝特区| 阳谷县| 鄂尔多斯市| 上思县| 禹州市| 普洱| 获嘉县| 罗城| 沐川县| 玉田县| 宿州市| 凯里市| 寻乌县| 井研县| 木兰县| 广德县| 武宁县| 峨眉山市| 清原| 清河县| 汪清县| 衡阳市| 华亭县| 专栏| 呈贡县| 绵阳市| 美姑县| 年辖:市辖区| 敖汉旗| 南皮县| 固原市| 伊吾县| 合江县| 崇明县| 日喀则市| 蓬莱市|