About Spring Cloud
Spring Cloud is a spring boot-based cloud application development tool for configuration management, service discovery, circuit breakers, intelligent routing, micro-agents, control buses, global locks, decision-making campaigns, Operations such as distributed sessions and cluster state management provide a simple way to develop.
Spring Cloud contains multiple sub-projects (for many different open source products involved in distributed systems), such as spring Cloud Config, Spring Cloud Netflix, Spring Cloud0 cloudfoundry, Spring Cloud AWS, Spring Cloud Security, Spring Cloud Commons, Spring Cloud Zookeeper, Spring Cloud CLI, and more.
Micro-Service Architecture
The "MicroServices architecture" has been so hot these past few years that the open source products related to MicroServices architectures have been repeatedly mentioned (e.g. Netflix, Dubbo), and Spring cloud has been the focus of architects and developers for the strong visibility and influence of the spring community. So what is a "microservices architecture"? To put it simply, a microservices architecture is to split a complete application from the data store vertically into multiple different services, each of which can be deployed independently, independently maintained, independently scaled, and invoked between services and services through, for example, restful APIs. For the "micro-service Architecture", we can find a lot of relevant introduction and research articles on the Internet to learn and understand. You can also read the ancestor Martin Fowler's "MicroServices" (Chinese version of translation Click to view), this article does not do more introduction and description.
Service governance
After a brief introduction to Spring cloud and the microservices architecture, here's what the main thrust of this article is, and how to use spring Cloud for service governance. Because spring Cloud provides a layer of abstraction for service governance, there are a number of different service governance frameworks that can be supported in spring cloud applications, such as Netflix Eureka, Consul, and Zookeeper. With the Spring cloud service Governance Abstraction layer, we can seamlessly switch service governance implementations without affecting any other logic such as service registration, service discovery, service invocation, and so on.
From now on, I will record the process and the essence of the recently developed Springcloud micro-service cloud architecture, and help more friends who are interested in developing the Spring cloud framework, hoping to help more good scholars. Let's explore how the Spring cloud architecture is built and how it can be used in enterprise projects.
Spring Cloud Micro-service architecture-Service registration and discovery