search
HomeCommon ProblemWhat are the five major components of springcloud

What are the five major components of springcloud

Jul 17, 2023 pm 02:54 PM
Springcloud five major components

The five major components of springcloud are: 1. Eureka, a RESTful service used to locate middle-tier services running in the AWS region; 2. Ribbon, a client load balancing tool based on HTTP and TCP; 3. Hystrix, prevents an application from trying to perform an operation multiple times; 4. Zuul, has multiple functions such as api gateway, routing, load balancing, etc.; 5. Config, provides server and client.

What are the five major components of springcloud

What are the five major components of springcloud?

1. Eureka

Role: realize service governance (service registration and discovery).

A RESTful service used to locate middle-tier services running in AWS Regions. It consists of two components: Eureka server and Eureka client. Eureka server is used as a service registration server. The Eureka client is a Java client used to simplify interaction with servers, act as a polling load balancer, and provide failover support for services. Netflix uses a separate client in its production environment that provides weighted load balancing based on traffic, resource utilization, and error status.

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: Mainly provides client-side software load balancing algorithm.

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. The Ribbon client component provides a series of complete configuration options, such as connection timeout, retry, retry algorithm, etc. Ribbon has built-in pluggable and customizable load balancing components.

3. Hystrix

A circuit breaker prevents an application from trying multiple times to perform an operation that is likely to fail, allowing it to continue without waiting for failure recovery or wasting CPU cycles while it determines The fault is persistent. Circuit breaker mode also enables applications to detect whether the fault has been resolved. If the problem appears to have been corrected, the application can try to invoke the operation.

In order to ensure high availability, individual services are usually deployed in clusters. 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: It has multiple functions such as api gateway, routing, load balancing and so on.

Similar to nginx, reverse proxy function, but Netflix itself has added some features to cooperate 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.

SpringCloud Config provides server side and client side. 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 needs to be coordinated with Spring Cloud Bus to achieve dynamic configuration updates.

What is Spring Cloud?

Spring Cloud is an ordered collection of a series of frameworks. It uses the development convenience of Spring Boot to cleverly simplify the development of distributed system infrastructure, such as service discovery registration, configuration center, message bus, load balancing, circuit breakers, data monitoring, etc., all of which can be done using the Spring Boot development style. to one-click startup and deployment. Spring Cloud does not reinvent the wheel. It just combines the relatively mature and practical service frameworks developed by various companies, and re-encapsulates them through Spring Boot style to shield the complex configuration and implementation principles, and finally provides developers with The author has created a set of distributed system development toolkits that are easy to understand, easy to deploy and easy to maintain.

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
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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.