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

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.
主站蜘蛛池模板: 柯坪县| 藁城市| 陇川县| 乌兰县| 苍山县| 上饶市| 沛县| 乌拉特前旗| 喀喇沁旗| 三门县| 保德县| 筠连县| 广河县| 迭部县| 布尔津县| 竹山县| 广灵县| 莱州市| 四川省| 宁德市| 沙洋县| 邵武市| 武邑县| 铜川市| 邵阳市| 平远县| 鄂州市| 九龙县| 响水县| 大理市| 乐亭县| 上饶县| 山东省| 常宁市| 乡宁县| 霍城县| 当涂县| 建始县| 临朐县| 盘锦市| 舟曲县|