Spring Integration for AWS 2.0 GA 和 Spring Cloud Stream Kinesis Binder 1.0 GA

釋出 | Artem Bilan | 2018 年 8 月 21 日 | ...

親愛的 Spring 社群!

我很高興宣佈全面推出支援 Amazon Web Services 的 Spring 專案:Spring Integration for AWS 2.0.0.RELEASESpring Cloud Stream Binder for AWS Kinesis 1.0.0.RELEASE

這兩個工件都可以在 Spring Release 倉庫和 Maven Central 中找到,並可用作依賴項

<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-aws</artifactId>
    <version>2.0.0.RELEASE</version>
</dependency>
...
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-stream-binder-kinesis</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>

當使用第二個時,不需要包含 spring-integration-aws

Spring Integration for AWS 2.0 這一代的主要目標當然是圍繞 AWS Kinesis 支援,這得益於 Spring Cloud Stream Binder for AWS Kinesis 中所做的工作。 特別是,我們引入了 DynamoDbMetadataStoreDynamoDbLockRegistry 來支援 AWS Kinesis 的分散式 Binder 使用者。 同時,遵循格式良好的 Spring Integration 抽象,當您的應用程式部署到 Amazon 雲環境或當您依賴 AWS 服務時,這些新元件可以用於任何其他分散式任務。 例如,AWS S3 入站通道介面卡可以使用 DynamoDbMetadataStore 用於 S3PersistentAcceptOnceFileListFilter,以防止訪問多個分散式應用程式例項中已處理的相同資源。 DynamoDbLockRegistry 可用於應用程式叢集中的領導者選舉。 有關 LockRegistryLeaderInitiator 的更多資訊,請參閱 Spring Integration 參考手冊

除了這些新元件之外,SNS 和 SQS 通道介面卡現在還支援將標頭對映到訊息屬性。 有關更多詳細資訊,請參閱 AbstractMessageAttributesHeaderMapper Javadocs 及其實現。

Kinesis 通道介面卡也支援標頭對映,但該機制完全不同,我們只能將它們與有效負載嵌入到記錄正文中。 有關更多詳細資訊,請參閱 Spring Integration 中的 EmbeddedJsonHeadersMessageMapper。 當 headerModeembedded(預設值)時,Kinesis Binder 中使用了類似的嵌入技術。

有關 Spring Integration for AWS 2.0 中的新功能以及 Spring Cloud Stream Binder for AWS Kinesis 的更多資訊,請參閱之前的版本 公告

另請參閱 Spring Cloud Stream 示例,瞭解有關如何在雲流應用程式中使用 Kinesis Binder 的更多想法。

感謝所有以任何可能的方式為這些專案做出貢獻的人。

我們期待任何反饋,並很高興在下一個版本中不斷發展這些專案,以滿足更好的社群需求。

Spring Integration AWS 專案頁面 | Spring Cloud Stream Binder for AWS Kinesis 專案頁面 | 幫助 | 聊天

獲取 Spring 新聞通訊

與 Spring 新聞通訊保持聯絡

訂閱

搶佔先機

VMware 提供培訓和認證,以加速您的進步。

瞭解更多

獲得支援

Tanzu Spring 在一個簡單的訂閱中提供對 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位制檔案。

瞭解更多

即將舉行的活動

檢視 Spring 社群中所有即將舉行的活動。

檢視全部