What is service discovery? Baidu or Google
Eureka is a framework developed by netfix. It is located in the middle layer and is used to ensure load balancing and Failover in the middle layer. It is a service framework developed based on reset.
Basic components: Eureka server and Eureka Client
Simple frameworks include:
Eureka server: stores registration information. It also provides a Web interface to check which services are available. Its availability is achieved through replication and high availability can be achieved through keeplived.
Eureka client: a Java client that is placed in various services for communication with the server, registering information to the server, and sending heartbeat to the server, it also has a caching mechanism (caching the information of each service) to prevent service interruption caused by the failure of all servers.
Disadvantage: Eureka is a C/S architecture. Currently, netfix closes the source from 2.0.
X×× source tools: etcd, consul, Zookeeper
Eureka (service discovery Framework)