Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreNOTE: This is a guest post from our friends at Alibaba.
Hi! Today, we’re very excited to announce that the 0.9.0, 0.2.2, and 0.1.2 releases of Spring Cloud Alibaba are now available.
Included in this GA are 3 new releases:
Four new modules were added to all three releases:
In addition, we introduced new features in spring-cloud-alibaba-nacos and spring-cloud-alibaba-sentinel, and rocketmq-binder is now integrated with rocketmq-spring.
Lastly, we fixed some bugs found in the previous version.
Note: The Spring Cloud Alibaba project is a community project maintained by Alibaba.
Seata is a distributed transaction component that is jointly open-sourced by Alibaba Group and Ant Financial. Being able to integrate with most of today's relational databases that support ACID transactions, Seata addresses distributed transaction issues in microservice scenarios in an efficient and nonintrusive manner.
At the level of Spring Cloud, Seata accesses the Spring Cloud layer by passing the transaction context in microservices:
Apache Dubbo™ (incubating) is a high-performance, Java-based open-source RPC framework.
Spring Cloud Alibaba integrated with it:
@Reference
@Service
annotated on Java interface@DubboTransported
annotated on @FeignClient
Java interface@DubboTransported
annotated on @Bean
definition of RestTemplate annonated @LoadBalanced
Nacos is a dynamic service discovery, configuration management, and service management platform that makes it easier to build cloud-native applications.
We updated Nacos Config as follows:
spring.cloud.nacos.config.enabled
configuration to turn off Nacos Config auto-injectionspring.cloud.nacos.config.enabled
with spring.profiles.active
We updated Nacos service registration as follows:
NacosWatch
to trigger HeartbeatEvent
.@EnableDiscoveryClient
optional to register service.Sentinel is an open-source project developed by the Alibaba Middleware team to address flow-control issues and ensure high availability in distributed architectures. Sentinel takes "flow" as the breakthrough point, and helps you to ensure service reliability through flow control, circuit breaking, and system load protection.
Updates in this release include:
ruleType
property for sentinel dataSource to fix the bug that the rule data won't load dynamically when dataSource loads empty data for the first time@SentinelRestTemplate
doesn't work in some scenariosSentinelProperties
and add two configuration items: Client IP and whether CommonFilter
is initializedRequestOriginParser
SentinelProtectInterceptor
that corresponds to @SentinelRestTemplate
becomes the highestSentinelEndpoint
now displays more information, such as application name, log directory, log name policy, dashboard address, metrics file size, client IP, etc@EnableCircuitBreaker
RestTemplate
and Feign
RocketMQ is an open-source distributed messaging system based on highly available cluster technologies. It provides low-latency and highly available message publication and subscription services.
Updates in this release include:
Zuul is a network gateway product of Netflix. We have now integrated it into Sentinel.
Updates in this release include:
SentinelPreFilter
、SentinelPostFilter
、SentinelErrorFilter
for request interceptionspring.cloud.sentinel.zuul.
to configure Sentinel FilterSMS is a messaging service provided by Alibaba Cloud.
Spring Cloud Alibaba Cloud SMS provides the following functions:
SchedulerX is a job scheduling middleware tool provided by Alibaba Cloud.
In this release we, fixed the circular reference bug.
These artifacts are available from Maven Central and Spring Release repository by using the BOM, as follows:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>0.9.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Sentinel currently supports reactive and will adapt to WebFlux and Spring Cloud Gateway.
RocketMQ Binder adaptation to MessageSource for message pulling.