Spring Cloud Stream 3.0 新特性 - Spring Cloud Stream中文文档(二)

本文为Spring Cloud Stream文档的中文翻译,原文地址:
https://cloud.spring.io/spring-cloud-static/spring-cloud-stream/3.0.3.RELEASE/reference/html/spring-cloud-stream.html
另外,Spring Cloud 版本:Hoxton.SR3,支持的 Spring Boot 版本:2.2.5.RELEASE

新功能和增强

  • Routing Function-请参见Routing with functions,获取更多详细信息;
  • Multiple bindings with functions(多个消息处理程序)- 请参见Multiple functions in a single application,获取更多详细信息;
  • Functions with multiple inputs/outputs(单个函数可以订阅或发布多个destination)- 请参见Functions with multiple input and output arguments,获取更多详细信息;
  • Native support for reactive programming -从 V3.0.0 开始,我们不再区分 spring-cloud-stream-reactive 模块,而是依赖于Spring Cloud Function 提供的原生的响应式支持。为了向后兼容,你仍然可以从以前的版本中获取spring-cloud-stream-reactive

弃用

  • Reactive 模块 (spring-cloud-stream-reactive)已经停止更新,不再通过 spring-cloud-function 进行分发,以提供原生支持。为了向后兼容,你仍然可以从以前的版本中获取spring-cloud-stream-reactive
  • spring-cloud-stream-test-support使用MessageCollector来_测试支持活页夹_,以支持新的测试活页夹,参见Testing
  • _@StreamMessageConverter_已弃用,因为它不再是必需的;
  • original-content-type在2.0版被弃用已经被移除;
  • 如果提供spring.cloud.stream.sendto.destination属性,BinderAwareChannelResolver是同意被弃用的,这主要用于基于函数的编程模型。对于 StreamListener,它仍然是必需的,因此将一直存在,直到我们弃用并最终抛弃 StreamListener 和基于注解的编程模型。
发布了10 篇原创文章 · 获赞 7 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/youthsong/article/details/105616490
今日推荐