Let’s take a look at how Spring Cloud components work together as a whole:

As you can see from the figure above, Spring Cloud components work together to support a complete microservices architecture.

Among them, Eureka is responsible for registration and discovery of services, so as to connect all services well. Hystrix is responsible for monitoring the invocation between services, and provides circuit breaker protection for repeated failures. The Hystrix dashboard,Turbine is responsible for monitoring Hystrix’s fuses and providing graphical display. Spring Cloud Config provides unified configuration center service when configuration files change. Spring Cloud Bus is responsible for notifying the services to get the latest configuration information. All external requests and services are forwarded through Zuul, which acts as an API gateway. Finally we use Sleuth+Zipkin to record all requests. Spring Cloud has considered the functions required by the architecture evolution of most Internet companies from the very beginning of its design, such as service discovery registration, configuration center, message bus, load balancing, circuit breaker, data monitoring, etc. These functions are provided in the form of insertion and removal, so that the required components can be reasonably selected for integration during the evolution of the system architecture, making the evolution of the architecture smoother and smoother.

Microservice architecture is a trend, and Spring Cloud provides a standardized, full-site technology solution that may be comparable to the birth of the current Servlet specification, effectively advancing the technological level of server software systems.

From now on, I will record the construction process and essence of springCloud micro-service cloud architecture recently developed, to help more friends who are interested in developing Spring Cloud framework, and I hope to help more good scholars. Discuss the process of building the Spring Cloud architecture and how it can be applied to enterprise projects.