Home Common Problem What are the five major components of springcloud?

What are the five major components of springcloud?

Dec 01, 2020 pm 01:50 PM
springcloud

The five major components of springcloud: 1. Eureka, which implements service governance; 2. Ribbon, which mainly provides client-side software load balancing algorithms; 3. Hystrix, a circuit breaker, protection system, and controls the scope of faults; 4. Zuul is Routing, load balancing and other functions; 5. Config is the configuration management function.

What are the five major components of springcloud?

Five major components of springcloud:

  • Service discovery - Netflix Eureka

  • Customer-side load balancing - Netflix Ribbon

  • Circuit breaker - Netflix Hystrix

  • Service gateway—— Netflix Zuul

  • Distributed configuration - Spring Cloud Config

##1, Eureka

Function : Implementing service governance (service registration and discovery)

Introduction: Spring Cloud Eureka is the service governance module under the Spring Cloud Netflix project.

consists of two components: Eureka server and Eureka client.

The Eureka server is used as a service registration center. Support cluster deployment.

Eureka client is a java client used to handle service registration and discovery.

When the application starts, the Eureka client registers its own service information with the server and caches the server's service information locally. The client will periodically conduct heartbeat interactions with the server to update service leases and service information.

2. Ribbon

Function: Ribbon mainly provides client-side software load balancing algorithms.

Introduction: Spring Cloud Ribbon is a client-side load balancing tool based on HTTP and TCP, which is implemented based on Netflix Ribbon. Through Spring Cloud's encapsulation, we can easily automatically convert service-oriented REST template requests into client-side load-balanced service calls.

Look at the picture above. The key point is to convert external REST calls into microservice calls according to the load balancing strategy. Ribbon has many load balancing strategies, which will be explained later.

3. Hystrix

Function: circuit breaker, protection system, control fault scope.

Introduction: In order to ensure its high availability, a single service is usually deployed in a cluster. Due to network reasons or its own reasons, the service cannot guarantee 100% availability. If there is a problem with a single service, thread blocking will occur when calling this service. At this time, if a large number of requests pour in, the thread resources of the Servlet container will be consumed. , causing service paralysis. Due to the dependencies between services, failures will propagate and have catastrophic consequences for the entire microservice system. This is the "avalanche" effect of service failures.

4, Zuul

Function: api gateway, routing, load balancing and other functions

Introduction: Similar to nginx, reverse proxy function , but Netflix itself has added some features to coordinate with other components.

In the microservice architecture, back-end services are often not directly open to the calling end, but are routed to the corresponding service through an API gateway based on the requested URL. When an API gateway is added, a wall is created between the third-party caller and the service provider. This wall directly communicates with the caller for permission control, and then distributes requests to the backend server in a balanced manner.

5. Config

Function: Configuration management

Introduction: SpringCloud Config provides server and client. The default implementation of the server storage backend uses git, so it easily supports a tagged version of the configuration environment, as well as providing access to a variety of tools for managing content.

This is still static and must be coordinated with Spring Cloud Bus to achieve dynamic configuration updates.

The above is the detailed content of What are the five major components of springcloud?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Interview feedback Spring Cloud's 25-shot series Interview feedback Spring Cloud's 25-shot series Aug 24, 2023 pm 03:57 PM

Spring Cloud is currently quite popular, and it is almost one of the necessary skills for Java developers. It is normal to be asked this question during the interview. Many people may have used it for a long time but failed the interview without understanding the principles.

Comparison and Selection Guide: Function Comparison of Spring Cloud and Spring Boot Comparison and Selection Guide: Function Comparison of Spring Cloud and Spring Boot Dec 29, 2023 pm 06:36 PM

SpringCloud and SpringBoot are currently the most popular open source frameworks in the Java field. They respectively provide a complete set of microservice architecture and solutions for quickly building applications. This article will compare their functions and give a selection guide to help readers understand their advantages and applicable scenarios. SpringBoot is a framework for developing Java applications. It provides a simplified development process and integrates a large number of commonly used functions and components, reducing the developer's workload.

What are the five core components of springcloud What are the five core components of springcloud Jun 12, 2023 pm 03:51 PM

The five core components of springcloud are: 1. Eureka, which implements service governance; 2. Ribbon, which provides client-side software load balancing algorithms; 3. Hystrix circuit breaker, which prevents an application from trying to perform an operation multiple times; 4. Zuul, which has an API Gateway, routing, load balancing and other functions; 5. Config, for configuration management.

Comparison and analysis of the application methods of SpringCloud and SpringBoot in the field of microservices Comparison and analysis of the application methods of SpringCloud and SpringBoot in the field of microservices Dec 29, 2023 pm 03:45 PM

In recent years, with the rise of cloud computing and distributed architecture, the application of microservice architecture has become more and more widespread. As two important frameworks in Java development, Spring Cloud and Spring Boot play an important role in the implementation of microservices. However, many people still have some doubts about their different application methods in the field of microservices. This article will explore the application of Spring Cloud and Spring Boot in microservices from different perspectives. First, let’s learn about Spri

Idea What are the common methods for springboot springCloud hot loading and hot debugging? Idea What are the common methods for springboot springCloud hot loading and hot debugging? May 18, 2023 pm 05:43 PM

Scenario Description During the project development process, when you need to modify and debug, you often need to restart the project every time, which wastes time. The following are two commonly used methods that I have compiled. One is to modify the startup configuration method (mainly for debug mode). Click Startup configuration=》editconfigrations...Modify Updateclassesandresourceson'update'action under configration: Update shortcut keys when the user actively performs updates: Ctrl+F9onframedeactication: When the edit window loses focus

SpringCloud-Spring Boot Starter usage test instance analysis SpringCloud-Spring Boot Starter usage test instance analysis May 16, 2023 am 11:10 AM

What is SpringBootStarter? SpringBootStarter is a concept proposed in the SpringBoot component, which simplifies many cumbersome configurations. By introducing various SpringBootStarter packages, you can quickly build the scaffolding of a project. For example, some of the ones we often use: spring-boot-starter-web: spring-boot-starter-data-redis: spring-boot-starter-data-mongodb: spring-boot-starter-data-jpa: spring-b

What is the difference between springcloud and springboot What is the difference between springcloud and springboot Dec 28, 2023 pm 03:34 PM

The difference between springcloud and springboot: 1. Function; 2. Usage; 3. Original intention of creation; 4. Purpose; 5. Integration; 6. Extensibility; 7. Complexity; 8. Community support; 9. Security; 10 , deployment and operation and maintenance. Detailed introduction: 1. Function. The main function of Spring Boot is to provide a quick way for microservice development, simplify configuration files, and improve work efficiency. Spring Cloud is a comprehensive management framework used to provide a comprehensive management framework for microservices. management framework, etc.

The difference between SpringCloud and SpringBoot from an architectural perspective The difference between SpringCloud and SpringBoot from an architectural perspective Dec 29, 2023 pm 04:13 PM

The difference between Spring Cloud and Spring Boot from an architectural perspective Introduction: In today's Internet era, building a distributed system has become a necessary requirement. SpringBoot and SpringCloud were born to meet this need. Although they are both solutions provided by the Spring framework, there are some important differences from an architectural perspective. This article will start from an architectural perspective and analyze SpringBoot and SpringCl.