Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand Spring Cloud Alibaba components

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to understand Spring Cloud Alibaba components, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Overview of 1.SpringCloud Alibaba

Spring Cloud Alibaba is committed to providing one-stop solutions for microservice development. This project contains the necessary components for the development of distributed application micro-services, making it easy for developers to use these components to develop distributed application services through the Spring Cloud programming model.

Relying on Spring Cloud Alibaba, you only need to add some annotations and a small amount of configuration to connect the Spring Cloud application to the Ali micro service solution, and quickly build the distributed application system through Ali middleware.

Several pain points of Spring Cloud

Some components stop maintenance and update, and it is not easy to solve problems.

Some of the environments are complex to build and do not have a very friendly visual interface.

The configuration is relatively complex and requires high learning costs.

Advantages of Spring Cloud Alibaba

Ali has stood the test of time and has a reasonable design with a good visual interface, which is convenient for operation and maintenance to monitor and troubleshoot problems. the environment is simple to build and configure, and the learning cost is low.

The collocation Scheme of PassJava Project with SpringCloud Alibaba Technology

Describe Spring CloudSpring Cloud Alibaba composition selection Service Discovery component Eureka (stop maintenance) Service Discovery component Nacos Registry Spring Cloud Alibaba-Nacos configuration Center component Spring Cloud Config configuration Center Spring Cloud Alibaba-Nacos break Protection component Hystrix break Protection Sentinel Service Fault tolerant Spring Cloud Alibaba-Sentinel Link tracking component Sleuth call chain Monitoring / Spring Cloud-Sleuth load balancing component Ribbon/Spring Cloud-Ribbon remote invocation component OpenFeign ( HTTP+JSON) Dubbo (RPC Framework) Spring Cloud-OpenFeign distributed transaction / Seata distributed transaction Spring Cloud Alibaba-SeataAPI Gateway Gateway/Spring Cloud-Gateway

Finally, technology selection:

Spring Cloud Alibaba-Nacos implementation registry

Spring Cloud Alibaba-Nacos implementation configuration center

Spring Cloud Alibaba-Sentinel implements service fault tolerance

Spring Cloud Alibaba-Seata to implement distributed transaction

Load balancing based on Spring Cloud-Ribbon

Spring Cloud-Feign to implement remote call

Spring Cloud-Gateway API gateway

Spring Cloud-Sleuth implements call chain monitoring

2.Spring Cloud Alibaba version

The version number of the project is in the form of x.x.x, where the numeric type of x is a number, starting with 0, and is not limited to the range of 0x9. When the project is in the incubator phase, the first version number always uses 0, that is, the version number is in the format of 0.x.x.

Because there are great changes in the interfaces and comments of SpringBoot 1 and SpringBoot 2 in the Actuator module, and there are also great changes in the upgrade of spring-cloud-commons from 1.x.x version to version 2.0.0, Ali adopts the same version as the SpringBoot version:

Version 1.5.x for Spring Boot 1.5.x2.0.x version for Spring Boot 2.0.x2.1.x version for Spring Boot 2.1.x2.2.x version for Spring Boot 2.2.x

Spring Cloud Alibaba version and Spring Cloud and Spring Boot version compatibility list

Spring Cloud version Spring Cloud Alibaba version Spring Boot version Spring Cloud Hoxton.SR32.2.x.RELEASE2.2.x.RELEASESpring Cloud Greenwich2.1.x.RELEASE2.1.x.RELEASESpring Cloud Finchley2.0.x.RELEASE2.0.x.RELEASESpring Cloud Edgware1.5.x.RELEASE1.5.x.RELEASE

We use Spring Cloud Hoxton.SR3, Spring Cloud Alibaba 2.2.0.RELEASE, Spring Boot 2.2.6 RELEASE

The pom.xml file of PassJava-Common introduces Spring Cloud Alibaba dependency

Com.alibaba.cloud

Spring-cloud-alibaba-dependencies

2.2.0.RELEASE

Pom

Import

After reading the above, have you mastered how to understand Spring Cloud Alibaba components? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report