Announcing the release of Spring Cloud Stream Horsham (3.0.0.RELEASE)

Spring Cloud Stream Horsham 3.0.0.RELEASE 已发布,作为 Spring Cloud Hoxton 的一部分,它引入了基于功能的编程模型,简化了配置,并增强了事件路由等功能。现在,流应用可以仅通过 Spring Boot 应用实现,无需大量样板代码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Engineering
Oleg Zhurakousky
November 25, 2019

We are pleased to announce the release of the Spring Cloud Stream Horsham (3.0.0.RELEASE) release train which is available as part of Spring Cloud Hoxton.RELEASE (imminent) and builds on Spring Boot 2.2.x and Spring Cloud Function 3.0.0.RELEASE which was also just released.

Spring Cloud Stream Horsham.RELEASE modules are available for use in the Maven Central repository.
Quick highlights:

As mentioned in these posts (demystified and simplified, functional and reactive, stream and spring Integration and event routing) preceding this announcement, the core theme of this release is functions!.

Historically, Spring Cloud Stream exposed annotation-based configuration model that required the user to be aware of and provide considerable amount of boilerplate information that could be otherwise easily inferred. You can read more details about it here, but with this release and subsequent release of Spring Cloud Functions that is no longer the case.

Stream app is just a boot app!

@SpringBootApplication
public class SampleApplication {
@Bean
public Function<String, String> uppercase() {
return value -> value.toUpperCase();
}
}

Yes, the above is fully functional Spring Cloud Stream application
Notable features and enhancements:

Most of notable features and enhancements are to emphasise our commitment to functional programming model;

Routing Function - which effectively corresponds to equal functionality (and more) provided by condition attribute of @StreamListener annotation. See Event Routing for more details.

Multiple bindings with functions (multiple message handlers) - see Multiple functions in a single application for more details.

Function arity (functions with multiple inputs/outputs - single function that can subscribe or target multiple destinations) - see Functions with multiple input and output arguments for more details.

Native support for reactive programming - since v3.0.0 we no longer distribute spring-cloud-stream-reactive modules and instead relying on native reactive support provided by spring cloud function. For backward compatibility you can still bring spring-cloud-stream-reactive from previous versions.
Schema Registry module has been migrated to a stand alone project

For more information you should also checkout the updated user guide.
Functional support in Kafka Streams

Kafka Streams binder now supports a first class function based programming model using which you can now write your Kafka Streams applications based on java.util.function support. This further reduces the boilerplate code that the applications need to write and allow the developers to focus on the business logic at hand. For further details, please visit Functional Style section for more details. Soby Chako (the lead for Spring Cloud Stream Kafka binder) is planning to have a dedicated set of write ups going over all the new features.

As always, we welcome feedback and contributions, so please reach out to us on Stackoverflow or GitHub and or Gitter
comments powered by Disqus

translate:
翻译:

我们很高兴地宣布,Spring Cloud Stream Horsham(3.0.0.RELEASE)发行版已经发布,它是Spring Cloud Hoxton.RELEASE(即将发布)的一部分,它基于Spring Boot 2.2.x和Spring Cloud Function 3.0构建。 0.RELEASE也刚刚发布。

Spring Cloud Stream Horsham.RELEASE模块可在Maven Central存储库中使用。
快速亮点:

如本公告之前的这些帖子(神秘和简化,功能和响应,流和spring集成以及事件路由)中所述,此版本的核心主题是功能!

从历史上看,Spring Cloud Stream公开了基于注释的配置模型,该模型要求用户了解并提供大量的样板信息,而这些信息否则就很容易推断出来。 您可以在此处阅读有关它的更多详细信息,但是对于此版本和后续版本的Spring Cloud Functions,则不再如此。

流应用程序只是一个启动应用程序!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值