Spring cloud of eureka acquaintance

        Service discovery is based on one of the key principles of micro-services architecture. Netflix service discovery server and the client is Eureka. Server can be configured and deployed as high availability, replication status of each server registration services to other servers.

        Of course, there are also many middleware based service discovery, the following figure compares some of them:

  • Health Check Service

When using Euraka need to explicitly configure health check support; Zookeeper, Etcd then lost the next connection and service process task unhealthy, and Consul relatively more elaborate.

  • Multi-data center support

Consul Gossip protocol over the WAN, complete synchronization across data centers; and other products will require additional development work to achieve;

  • KV storage services

In addition to Eureka, several other capable of external support kv storage services, we will be talked about behind these products, the pursuit of high consistency of the important reasons. Providing storage services can be dynamically configured into better service, oh.

  • Multi-language capabilities and access protocols provide external services

Zookeeper cross-language support is weak, several other support http11 provide possible access. Euraka generally provide access to multi-lingual client support through the sidecar way. Etcd also provides support Grpc of. Consul addition to the standard services Rest api, also provides support for DNS.

  • Watch support (client to the service provider to observe changes)

Zookeeper support server-side push changes, Eureka 2.0 (under development) also plans to support. Eureka, Consul, Etcd the sense changes are achieved by a long polling mode;

  • Monitor their own cluster

In addition to Zookeeper, several other are supported by default metrics, operation and maintenance can collect these metrics and information to achieve the alarm monitoring purposes;

  • Safety

Consul, Zookeeper support ACL, another Consul, Etcd secure channel support https.

  • Spring Cloud Integration

Currently it has a corresponding boot starter, provides integration capabilities.

 

In general, various middleware can meet the basic development projects in general.

Guess you like

Origin blog.csdn.net/syilt/article/details/91468305