There are two ways to build
The first kind of
Simpler violence, is my client send each had its own registered information, and each had separate, compare save trouble, so data consistency between what is good, but the downside is obvious, is the HTTP request too much, I will send n a client request, so traffic increase, the bottleneck is larger, This is also a good way to do it.
The second,
This paper mainly introduces: My client, as long as send a let had their pull each other information, it is more convenient, but the problem is the data consistency may not be very standard, fault tolerance, but he raised the partition hang up a, so that is no matter, basically have a backup machine, by observation of heartbeats, when returned to the client after service list, even destroy the, There is a local cache.
Configuration had been
Just check it
Configure it in YML
Configure in another
When it looks like this, you’re okey
Finally, host must be configured because Eureka searches for services based on IP address. If it is a server, change host to IP address. Apploication -name must also be configured, which is easy to distinguish.