What is Spring Cloud?

The Spring Cloud project implements a set of common patterns used in distributed systems, in a set of easy-to-use Java

Spring library. Spring Cloud itself is not a (cloud solution) cloud solution, it provides some functions that are necessary to develop cloud-oriented applications that follow the Twelve-Factor application principles. By using Spring Cloud, developers only need to focus on writing

The business functions use Spring Boot, and in the process, use the distributed, fault-tolerant, and self-healing provided by Spring Cloud at the same time

Function.

 

Spring Cloud solutions are agnostic to the deployment environment and can be developed and deployed on a desktop PC or an elastic cloud.

 

Spring Cloud provides developers with many alternative solutions, for example service registration can be done with Eureka, ZooKeeper, or

Consul. Spring Cloud's components are decoupled so that developers have the flexibility to choose which components they need.

 

Differences between Spring Cloud and Cloud Foundry:

Spring Cloud is a development kit for developing Internet-level Spring Boot projects, while Cloud Foundry is a Platform

as a Service for building, deploying, and scaling applications.

 

Spring Cloud distribution:

A Spring Cloud project contains many different components, the versions of which are defined in

spring-cloud-starter-parent BOM中。

 

The version we use here is Brixton.RELEASE

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-dependencies</artifactId>
    <version>Brixton.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
  </dependency>

 

The correspondence between the components of Spring Cloud and some distributed system functions:


 

 

Spring Cloud和Netflix OSS

Many Spring Cloud components that are important for microservice deployment come from the Netflix Open Source Software center.

In order to manage large-scale microservices, Netflix engineers developed many tools, which are missing on the AWS platform to manage

Netflix services. Later, Netflix open sourced these components and put them under the Netflix OSS platform for public use. these components

It has been widely used in the production system. Spring Cloud provides a higher level of abstraction for these components, making it easy for Spring developers to

more friendly. It also provides a declarative mechanism that integrates well and conforms to Spring Boot and the Spring framework.
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326149886&siteId=291194637