SpringCloud learn first post: SpringCloud Profile

A, SpringCloud Profile

  Spring Cloud is an ordered collection of a series of frames. It uses facilitate the development of Spring Boot cleverly simplify the development of distributed systems infrastructure, such as service discovery registration, distribution center, message bus, load balancing, circuit breakers, monitoring and other data, can be done with a style of development of Spring Boot and a key to start the deployment. Spring Cloud did not reinventing the wheel, it just will present each company developed more mature, and can withstand the test of actual service framework combined, re-packaged masked a complex configuration and implementation of the principles by Spring Boot style and, ultimately, developers set aside a simple and easy to understand, easy to deploy and easy maintenance of distributed systems development kit.

Two, SpringCloud usual five components

  • Spring Cloud Config

  Service distribution center, all service configuration file in the local repository or remote warehouse, warehouse distribution center is responsible for reading the configuration file, reads the configuration of other services to the distribution center. Spring Cloud Config configuration allows unified management of services, and you can refresh the configuration file without restarting the service of the human situation.

  • Eureka

  Service registration and discovery component

  • Ribbon

  Load balancing component

  • Hystrix

  Fuse assembly. Transferring the fault by blowing it API interface control service, the service system to prevent micro avalanche effect. In addition Hystrix services can play a limiting role and service degradation. Hystrix Dashboard assembly using a single monitor service blown state, using Hystrix Turbine component can monitor the status of the plurality of service fuse.

  • Zuul

  Intelligent routing gateway component. And intelligent routing requests can play the role of filtering, internal services API interface exposed by Zuul common external gateway, to prevent the internal services of external exposure of sensitive information. You can also achieve secure authentication, access control.

Third, learning later used Springboot, Cloud version

Greenwich.SR1 official version of the document as follows:
https://cloud.spring.io/spring-cloud-static/Greenwich.SR1/single/spring-cloud.html

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.1.4.RELEASE</version>
		<relativePath />
	</parent>
	<properties>
		<java.version>1.8</java.version>
		<spring-cloud.version>Greenwich.SR1</spring-cloud.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

 

  

 

Guess you like

Origin www.cnblogs.com/yangk1996/p/10990078.html