Spring Cloud Alibaba connects Spring Cloud applications to Alibaba middleware for registration, configuration, messaging, flow control, and distributed transactions. Add annotations and configuration to use Nacos, Sentinel, RocketMQ, Seata, and related services.
Overview
Spring Cloud Alibaba is a Spring Cloud subproject that packages integrations so Java microservices can adopt Alibaba’s distributed middleware from within familiar Spring Boot configuration. It positions itself as a one-stop set of components for building distributed applications, reducing bespoke wiring between Spring Cloud and each middleware client.
Documented capabilities include flow control and service degradation with Sentinel, including dynamic rule changes; service registration and discovery aligned with Spring Cloud load balancing; externalized distributed configuration with refresh; event-driven microservices via shared messaging; and distributed transaction support through Seata. Additional modules cover RocketMQ messaging and Alibaba Cloud OSS storage in the examples tree.
Developers consume the libraries through Maven or Gradle dependencies, including BOM imports for aligned versions across Spring Boot release lines. The examples module provides walkthrough projects for Sentinel, Nacos, RocketMQ, and OSS usage.
Version lines track corresponding Spring Boot major versions, with separate artifact coordinates for Boot 2.x, 3.x, and 4.x-era releases. The project is maintained by Alibaba as part of the broader Spring Cloud ecosystem and documents community contact channels for support discussions.
Key features
- Nacos-based registration and distributed configuration
- Sentinel flow control and degradation rules
- RocketMQ integration for event-driven services
- Seata distributed transaction support
- Spring Cloud aligned service discovery and load balancing
- Alibaba Cloud OSS example integration
- Maven and Gradle BOM dependency management
Use cases
- Building Spring microservices on Alibaba middleware
- Centralized dynamic configuration for cloud-native apps
- Rate limiting and circuit breaking with Sentinel
- Distributed transactions across Spring Cloud services