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

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.
主站蜘蛛池模板: 平遥县| 博湖县| 耒阳市| 嘉黎县| 海兴县| 葫芦岛市| 呼图壁县| 遵化市| 怀仁县| 淳化县| 封丘县| 日土县| 邵阳市| 府谷县| 黑河市| 类乌齐县| 扶余县| 邻水| 杨浦区| 甘孜县| 安顺市| 颍上县| 琼结县| 碌曲县| 和平区| 博野县| 宝清县| 遂宁市| 名山县| 安国市| 隆化县| 类乌齐县| 江门市| 临澧县| 婺源县| 四子王旗| 玉田县| 林芝县| 沂南县| 翁牛特旗| 岳西县|