Micro-Service Framework-spring Cloud Introduction (i)

Source: Internet
Author: User

Spring Cloud is a microservices framework that provides a full range of distributed system solutions compared to RPC frameworks such as Dubbo.

Spring Cloud encapsulates many of the open source components of the microservices infrastructure, while also enabling integration with the cloud platform and the spring Boot development framework.

Spring Cloud provides developers with a quick-build tool for distributed systems (configuration management, service discovery, fusing, routing, micro-agent, Control bus, one-time token, all-in-one, leader election, distributed session, cluster state), using spring Cloud developers can quickly start a service or build an application, while being able to quickly connect to cloud platform resources.

Let's start with a brief description of the four basic key components of the spring Cloud Chinese community:

Spring Cloud Config Configuration center

Spring Cloud config is the configuration center in our usual sense. Spring Cloud config-The configuration of applications that were originally placed locally on the central server, essentially migrating the configuration information from the local to the cloud. To provide better management and release capabilities.

Spring Cloud Config sub-server and client, the server is responsible for the GIT (svn) stored in the configuration file as a rest interface, the client can get the configuration from the server side rest interface. However, the client is not actively aware of the changes to the configuration, thereby proactively acquiring a new configuration, which requires each client to trigger its own/refresh through the Post method.

Spring Cloud Netflix Service discovery

Spring Cloud Eureka provides service discovery, service registration capabilities in a distributed environment.

Spring Cloud Netflix, one of Spring Cloud's sub-projects, focuses on the packaging of Netflix's range of open source products, which provides a self-configuring Netflix OSS integration for spring boot applications.

With some simple annotations, developers can quickly configure common modules in the application and build large, distributed systems. It mainly provides modules including: Service Discovery (Eureka), Circuit breakers (Hystrix), intelligent routing (Zuul), Client load Balancing (Ribbon), etc.

Spring Cloud Hystrix Fuse

A circuit breaker (Cricuit breaker) is a facility that automatically fuses (turns on the switch) when the remote service is unavailable, and automatically recovers (closes the switch) when the remote service resumes.

A circuit breaker (Cricuit breaker) is a facility that automatically fuses (turns on the switch) when the remote service is not available and automatically recovers (closes the switch) when the remote service resumes, and Spring Cloud provides a circuit breaker via Netflix's hystrix components, Resource isolation and self-healing capabilities.

Spring Cloud Zuul Service Gateway

Spring Cloud Eureka provides service discovery, service registration capabilities in a distributed environment.

Spring Cloud Netflix, one of Spring Cloud's sub-projects, focuses on the packaging of Netflix's range of open source products, which provides a self-configuring Netflix OSS integration for spring boot applications. With some simple annotations, developers can quickly configure common modules in the application and build large, distributed systems. It mainly provides modules including: Service Discovery (Eureka), Circuit breaker (hystrix), intelligent Path (Zuul), Client load Balancing (Ribbon), etc.

Of course Spring Cloud also has many additional components to extend, including service link monitoring and tracking (a key feature), message bus, Data flow processing, batch task processing, and more. For the whole spring cloud microservices framework simply, that is:

As long as you divide your microservices components and modules and define the API interfaces that need to be exposed, the rest of the development is not much different from the traditional approach, and the components you develop are integrated into a distributed, extensible microservices environment. The interface is designed to publish, service registration, service invocation and routing, service monitoring, health detection and flow control will be done by the micro-service framework to help you.

It is with the mature micro-service framework that we should shift the focus of the microservices architecture design from the technical bottom to the component partition and interface design. Micro-service architecture is a trend, Spring cloud provides a standardized, all-in-one technical solution, meaning may be comparable to the current servlet specification is born, effectively promote the service side software system technology progress.

Micro-Service Framework-spring Cloud Introduction (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.