In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "the function and usage of Spring Cloud Alibaba". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Spring Cloud Alibaba
Official github address
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.
Main function
Service throttling degradation: the access of WebServlet, WebFlux, OpenFeign, RestTemplate, Spring Cloud Gateway, Zuul, Dubbo and RocketMQ is supported by default. You can modify the downgrade rules in real time through the console while running, and you can also view the Metrics monitoring of current limiting degradation.
Service registration and discovery: adapts to the Spring Cloud service registration and discovery standard, and integrates Ribbon support by default.
Distributed configuration management: supports externalized configuration in distributed systems and automatically refreshes when configuration changes.
Message-driven capabilities: build message-driven capabilities for micro-service applications based on Spring Cloud Stream.
Distributed transactions: use @ GlobalTransactional annotations to solve distributed transaction problems efficiently and with zero intrusiveness to the business.
Ali Cloud object Storage: Ali Cloud provides massive, secure, low-cost, highly reliable cloud storage services. Support to store and access any type of data in any application, at any time, anywhere.
Distributed task scheduling: provide second-level, accurate, highly reliable, highly available timing (based on Cron expression) task scheduling service. At the same time, it provides a distributed task execution model, such as grid tasks. Grid tasks support sea quantum tasks to be evenly distributed to all Worker (schedulerx-client) for execution.
Aliyun SMS service: covering the world's SMS service, friendly, efficient and intelligent Internet communication capabilities to help enterprises quickly build customer access channels.
module
Sentinel: take traffic as a starting point to protect the stability of services from many dimensions, such as flow control, circuit breaker degradation, system load protection, and so on.
Nacos: a dynamic service discovery, configuration management, and service management platform that makes it easier to build cloud native applications.
RocketMQ: an open source distributed messaging system based on highly available distributed cluster technology, providing low-latency, highly reliable message publishing and subscribing services.
Dubbo:Apache Dubbo ™is a high-performance Java RPC framework.
Seata: Alibaba open source product, an easy-to-use high-performance micro-service distributed transaction solution.
Alibaba Cloud ACM: an application configuration center product that centrally manages and pushes the application configuration in a distributed architecture environment.
Alibaba Cloud OSS: Ali Cloud object Storage Service (Object Storage Service, referred to as OSS) is a massive, secure, low-cost, highly reliable cloud storage service provided by Aliyun. You can store and access any type of data in any application, at any time, and anywhere.
Alibaba Cloud SchedulerX: a distributed task scheduling product developed by Ali middleware team, which provides seconds, accuracy, high reliability and high availability timing (based on Cron expression) task scheduling service.
Alibaba Cloud SMS: covering the world's SMS service, friendly, efficient and intelligent interconnection communication capabilities to help enterprises quickly build customer access channels.
How to use
How to introduce dependencies if you need to use a released version, add the following configuration to dependencyManagement.
Com.alibaba.cloud spring-cloud-alibaba-dependencies 2.1.0.RELEASE pom import
Then add the dependencies you need to dependencies and you can use them.
Version management specification
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 big changes in the upgrade of spring-cloud-commons from 1.x.x version to 2.0.0 version, we adopt the same version as the SpringBoot version number:
Version 1.5.x for Spring Boot 1.5.x
Version 2.0.x for Spring Boot 2.0.x
Version 2.1.x for Spring Boot 2.1.x
Current situation of Spring BootSpring CloudSpring Cloud Alibaba2.1.xGreenwich0.9.x2.0.xFinchley0.2.x1.5.xEdgware0.1.x1.5.xDalston0.1.x
Spring cloud alibaba has been in a state of incubation before. From the name, we can see that Spring Cloud has a close relationship. On July 24, 2019, Spring officially announced that it graduated from Spring Cloud Alibaba and the warehouse was moved to Alibaba Github OSS. This means that Spring Cloud Alibaba is the first open source project to enter the Spring community in China.
In July 2018, it officially opened source and entered the incubator.
In October 2018, the first open source version 0.1.0-0.2.0 (adapted to Spring Cloud Edgware & Finchley) was released, including Nacos Config, Nacos Discovery, Sentinel and OSS.
In December 2018, the second version 0.1.1 & 0.2.1 was released, with new Spring Cloud Stream RocketMQ Binder and Spring Cloud Bus RocketMQ components.
In April 2019, Preview Release versions 0.9.0,0.1.2-0.2.2 (adapting to Spring Cloud Greenwich for the first time) were released, and new Dubbo Spring Cloud and Seata components were added. Subversive use of Spring Cloud clients to invoke Dubbo services
In July 2019, Spring Cloud officially announced that it graduated from Spring Cloud Alibaba.
In August 2019, the first version 1.5.0, 2.0.0 & 2.1.0 was released after graduation. A new spring-cloud-alibaba-sentinel-gateway module is added to improve Sentinel's support for Spring Cloud system Gateway.
This is the end of the content of "functions and usage of Spring Cloud Alibaba". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.