Spring Integration AWS 2.2 GA 和 Spring Cloud Stream Kinesis Binder 1.2 GA 版本发布

发布 | Artem Bilan | 2019 年 5 月 13 日 | ...

今天我很高兴地宣布 Spring Integration for Amazon Web Services 扩展版本 2.2.0 和 Spring Cloud Stream Binder for AWS Kinesis 版本 1.2.0 正式发布。

这些版本可以从 Maven Central、JCenter 和我们的 发布仓库 下载

compile "org.springframework.integration:spring-integration-aws:2.2.0.RELEASE"

如果您不使用 Kinesis Binder。或者通过 Binder 依赖

compile "org.springframework.cloud:spring-cloud-stream-binder-kinesis:1.2.0.RELEASE"

这两个版本的主题都是关于支持 Kinesis ClientKinesis Producer 库的新功能。为此,spring-integration-aws 提供了 KclMessageDrivenChannelAdapterKplMessageHandler 实现。目前,该实现基于 KCL v1.x,因为我们在 spring-integration-aws 中使用的并非所有 AWS 依赖项都提供 AWS SKD v2 实现。根据 Kinesis Client Library 的研究,已为 KclMessageDrivenChannelAdapterKinesisMessageDrivenChannelAdapter 引入了额外的 CheckpointMode.periodic

spring-cloud-stream-binder-kinesis 基于最近发布的 Spring Cloud Stream 版本 2.2,并提供了一个新的 Binder 配置选项来启用 KCL/KPL 功能

spring.cloud.stream.kinesis.binder.kplKclEnabled = true

KCL/KPL 依赖项已显式包含在 spring-cloud-stream-binder-kinesis 中,因此只需简单地决定为 Kinesis Binder 选择经典模式还是 KCL/KPL 模式。

Kinesis Binder 的另一个新功能是 DynamoDB Streams,它可以作为 Kinesis Consumer 记录来处理。为此,应使用属性配置特定的输入绑定

spring.cloud.stream.kinesis.bindings.<channelName>.consumer.dynamoDbStreams = true

如果您的 Spring Cloud Stream 微服务仅在 source 模式下工作,则 DynamoDB 和 Cloud Watch 的配置现在也是可选的。只需担心 Kinesis 生产者配置,无论是经典模式还是 KPL 模式。

非常感谢社区中的每个人对这些项目的所有反馈和贡献。

欢迎通过所有可用的沟通渠道提供任何反馈!

Spring Integration for AWS 资源

项目页面 | 贡献 | 帮助 | 聊天

Spring Cloud Stream Binder for AWS Kinesis 资源

项目页面 | 贡献 | 帮助 | 聊天

获取 Spring 新闻通讯

随时关注 Spring 新闻通讯

订阅

领先一步

VMware 提供培训和认证,以加速您的进步。

了解更多

获得支持

Tanzu Spring 在一个简单的订阅中提供对 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件。

了解更多

即将举行的活动

查看 Spring 社区中所有即将举行的活动。

查看全部