Spring Cloud Alibaba2021.0.4.0

Spring Cloud Alibaba (https://sca.aliyun.com/en-us/) provides a one-stop solution for distributed application development. It contains all the components required to develop distributed applications, making it easy for you to develop your applications using Spring Cloud.

With Spring Cloud Alibaba, you only need to add some annotations and a small amount of configurations to connect Spring Cloud applications to the distributed solutions of Alibaba, and build a distributed application system with Alibaba middleware.

Features

Spring Cloud

  • Flow control and service degradation:flow control, circuit breaking and system adaptive protection with Alibaba Sentinel

  • Service registration and discovery:instances can be registered with Alibaba Nacos and clients can discover the instances using Spring-managed beans. Supports Ribbon, the client side load-balancer via Spring Cloud Netflix

  • Distributed Configuration:using Alibaba Nacos as a data store

  • Event-driven:building highly scalable event-driven microservices connected with Spring Cloud Stream RocketMQ Binder

  • Message Bus: link nodes of a distributed system with Spring Cloud Bus RocketMQ

  • Distributed Transaction:support for distributed transaction solution with high performance and ease of use with Seata

  • Dubbo RPC:extend the communication protocols of Spring Cloud service-to-service calls by Apache Dubbo RPC

Spring Boot

All the Spring Boot Starters are maintained in Alibaba Cloud Spring Boot Project.

Getting Started

The easiest way to get started is by including the Spring Cloud BOM and then adding spring-cloud-alibaba-dependencies to your application’s classpath. If you don’t want to include all of the Spring Cloud Alibaba features you can add individual starters for the features you would like.

The spring-cloud-alibaba-dependencies dependency in pom:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-alibaba-dependencies</artifactId>
            <version>{project-version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

If you want to use Spring Boot Starters for Alibaba Cloud services, you should add the Aliyun Spring Boot BOM to your pom.xml:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>aliyun-spring-boot-dependencies</artifactId>
            <version>{project-version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

Run your Spring Boot/Cloud applications on Alibaba Cloud

Enterprise Distributed Application Service (EDAS) is a platform as a service (PaaS) service for application hosting and microservice management, providing full-stack solutions such as application development, deployment, monitoring, and O&M. It supports Apache Dubbo, Spring Cloud, and other microservice runtime environments, helping you easily migrate applications to Alibaba Cloud.

Follow this tutorial to prepare a Java Spring Boot/Cloud application for deployment in EDAS.

MicroServices Engine (MSE) is a microservices platform for the mainstream open source microservices frameworks Spring Cloud, including governance center and full managed registration/configuration center such as Zookeeper, Eureka and Nacos.

Your application can enjoy the comprehensive microservices governance capability provided by the product without modifying the code and configuration through javaagent technology.

MSE also provides highly available, operation and maintenance free clusters such as zookeeper, Nacos and Eureka, fully compatible with the standard interface of open source products by hosting registration / configuration center.

Follow this tutorial to build a Nacos Engine for service registry in MSE.

Spring Initializr

Quickstart Your Project

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all