The principles of the five major components of springcloud are: 1. Eureka is used to simplify the interaction with the server, act as a polling load balancer, and provide failover support for services; 2. Ribbon mainly provides client-side software load balancing Algorithm; 3. Hystrix can help quickly reject an operation that is likely to fail, instead of waiting for a request that the operation times out, to maintain the system's response time; 4. Zuul is like nginx, the function of a reverse proxy; 5. Config is still.
Five major components of springcloud
Service discovery--Netflix Eureka
Customer-side load balancing--Netflix Ribbon
Circuit Breaker—Netflix Hystrix
Service Gateway—Netflix Zuul
Distributed Configuration—Spring Cloud Config
1, Eureka
A RESTful service used to locate middle-tier services running in AWS Regions.
consists of 2 components: Eureka server and Eureka client.
Eureka server is used as a service registration server.
The Eureka client is a java client used to simplify interaction with the server, act as a polling load balancer, and provide failover support for services.
Netflix uses an alternative client in its production environment that provides weighted load balancing based on traffic, resource utilization, and error status. /
2. Ribbon
Ribbon mainly provides client-side software load balancing algorithms.
The Ribbon client component provides a series of complete configuration options, such as: connection timeout, retry, retry algorithm, etc.
Ribbon has built-in pluggable and customizable load balancing components.
The following are some load balancing strategies used:
Simple round-robin load balancing
Weighted response time load balancing
Region-aware round-robin load balancing
Random Load Balancing
Ribbon also includes the following features:
Easy to integrate with service discovery components (such as Netflix's Eureka)
Completed using Archaius Runtime configuration
Use JMX to expose operation and maintenance indicators, use Servo to publish
Multiple pluggable serialization options
Asynchronous and batch operations (coming soon)
Automatic SLA Framework (coming soon)
System Management/Indicator Console (coming soon)
3, Hystrix
The above is the detailed content of What are the principles of the five major components of springcloud. For more information, please follow other related articles on the PHP Chinese website!