notes
Chapter III SpringCloud core component registry
registry 1. What is micro-services
Description: to explain what is the registration center, which used the registry (drawing)
understand the registry: service management, there is a core service registry, heartbeat mechanisms for dynamic maintenance
service provider provider: start time reported to the registry own network information
services consumer consumer: when to start their own network information reported to the registry, pull the relevant network information provider's
Why:
micro application services and more and more machines, caller needs to know the network address of the interface, if by way of the configuration file to control the network address for the dynamic new machine, maintenance great question
mainstream registry:
ZooKeeper, Eureka, Consul, etcd etc.
Start
There are three nodes abc Goods Services servers are deployed in goods and services.
Registration centers will each service node heartbeat. For example, sixty seconds of each heartbeat packets are sent to the registry. This indicates that the current service is available.