This is the 9th day of my participation in the More text Challenge. For details, see more text Challenge

Why to use learning springcloud and its advantages

Spring Cloud is an ordered collection of frameworks. It takes advantage of the development convenience of Spring Boot, and cleverly simplifies the development of distributed system infrastructure, such as service registration, service discovery, configuration center, message bus, load balancing, circuit breaker, data monitoring, etc., which can be started and deployed with the click of the Spring Boot development style.

In layman’s terms, Spring Cloud is a collection of frameworks (not a specific framework) for building microservices development and governance, with the main contribution coming from Netflix OSS. The Spring Cloud module is introduced as follows:

Eureka: Service registry for service management. Ribbon: a client-based load balancing component. Hystrix: Fault-tolerant framework that prevents an avalanche of services. Feign: Web service client that simplifies HTTP interface invocation. Zuul: API gateway that provides functions such as routing and forwarding and request filtering. Config: distributed configuration management. Sleuth: Service tracking. Stream: A framework for building message-driven microservices applications. Bus: The cluster message Bus of the message broker.

In addition to the above modules, there are Cli, Task, and so on. The tutorial covers only a few commonly used modules.

Spring Cloud is a very good set of frameworks. It contains so many functional modules that it is impossible to cover them all. The modules shown in the tutorial are all derived from real development.

Spring Cloud version introduction BELIEVE you like the author, in the first visit to the Spring Cloud official website must have a doubt that there are too many versions, in the end which is the stable version? Which version do you need? Next, I will give you a brief introduction to the version of the problem.

Visit the websiteThe projects. Spring. IO/spring – clou…1.

Figure 1 Spring Cloud version

As you can see from Figure 1, Spring Cloud is not in the 1.1, 1.2, 1.3 format of other projects. Because Spring Cloud is a large integrated project with many sub-projects, it can be said that it is a comprehensive suite of components of a microservices architecture solution, each of which iterates and updates its content independently, each maintaining its own release number.

As for how to choose the version that suits oneself, the author thinks, everyone can choose the latest stable version directly when contacting. The new version certainly has fewer bugs and is more stable.

The examples in this tutorial are based on Finchley SR2. Different versions have different functions, and the version of each submodule is different, so how do you know what version of the submodule is under each major version?

The answer is on the homepage of the official website. There is a table at the bottom of the page (see Table 1). From this table, we can clearly know that the Spring Boot version of Finchley SR2 is 2.0.6. Spring – the Cloud – Bus is 2.0.0 RELEASE.

Table 1 List of Spring Cloud releases

Component Edgware.SR5 Finchley.SR2 Finchley.BUILD-SNAPSHOT
spring-cloud-aws 1.2.3 RELEASE 2.0.1. RELEASE 2.0.1. BUILD – the SNAPSHOT
spring-cloud-bus 1.3.3. RELEASE . 2.0.0 RELEASE 2.0.1. BUILD – the SNAPSHOT
spring-cloud-cli 1.4.1. RELEASE . 2.0.0 RELEASE 2.0.1. BUILD – the SNAPSHOT
spring-cloud-commons 1.3.5. RELEASE 2.0.2. RELEASE 2.0.2. BUILD – the SNAPSHOT
spring-cloud-contract 1.2.6. RELEASE 2.0.2. RELEASE 2.0.2. BUILD – the SNAPSHOT
spring-cloud-config 1.4.5. RELEASE 2.0.2. RELEASE 2.0.2. BUILD – the SNAPSHOT
spring-cloud-netflix  1.4.6. RELEASE 2.0.2. RELEASE 2.0.2. BUILD – the SNAPSHOT
spring-cloud-security 1.2.3. RELEASE 2.0.1. RELEASE 2.0.1. BUILD – the SNAPSHOT
spring-cloud-cloudfoundry 1.1.2. The RELEASE 2.0.1. RELEASE 2.0.1. BUILD – the SNAPSHOT
spring-cloud-consul  1.3.5. RELEASE 2.0.1. RELEASE 2.0.2. BUILD – the SNAPSHOT
spring-cloud-sleuth  1.3.5. RELEASE 2.0.2. RELEASE 2.0.2. BUILD – the SNAPSHOT
spring-cloud-stream  Ditmars.SR4 Elmhurst.SRI Elmhurst. BUILD-SNAPSHOT
spring-cloud-zookeeper 1.2.2. RELEASE . 2.0.0 RELEASE 2.0.1. BUILD – the SNAPSHOT
spring-boot 1.5.16. RELEASE 2.0.6. RELEASE 2.0.7. BUILD – the SNAPSHOT
spring-cloud-task 1.2.3. RELEASE . 2.0.0 RELEASE 2.0.1. BUILD – the SNAPSHOT
spring-cloud-vault 1.1.2. The RELEASE 2.0.2. RELEASE 2.0.2. BUILD – the SNAPSHOT
spring-cloud-gateway 1.0.2. RELEASE 2.0.2. RELEASE 2.0.2. BUILD – the SNAPSHOT

The differences between Spring Cloud and Dubbo and their pros and cons

The next article details the steps for preparing the Spring Cloud development environment and installing Lombok