領先一步
VMware 提供培訓和認證,助您加速進步。
瞭解更多親愛的Spring社群!
我很榮幸地宣佈 Spring 支援 Amazon Web Services 的專案已達到通用可用 (General Availability):Spring Integration for AWS 2.0.0.RELEASE 和 Spring 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 的工作。特別是,我們引入了 DynamoDbMetadataStore 和 DynamoDbLockRegistry 來支援 AWS Kinesis 的分散式 Binder 消費者。同時,遵循 Spring Integration 的良好抽象,這些新元件可以在任何其他分散式任務中使用,當您的應用程式部署在 Amazon 雲環境中或依賴 AWS 服務時。例如,AWS S3 Inbound Channel Adapters 可以使用 DynamoDbMetadataStore 來配合 S3PersistentAcceptOnceFileListFilter,以防止在多個分散式應用程式例項中重複訪問同一已處理的資源。DynamoDbLockRegistry 可用於應用程式叢集中的領導者選舉。有關 LockRegistryLeaderInitiator 的更多資訊,請參閱 Spring Integration 參考手冊。
除了這些新元件,SNS 和 SQS Channel Adapters 現在也支援將頭對映到訊息屬性。有關更多詳細資訊,請參閱 AbstractMessageAttributesHeaderMapper 的 Javadoc 及其實現。
Kinesis Channel Adapters 也支援頭對映,但機制完全不同,我們只能將它們與載荷一起**嵌入**到記錄體中。有關更多詳細資訊,請參閱 Spring Integration 中的 EmbeddedJsonHeadersMessageMapper。當 headerMode 為 embedded(預設)時,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 專案頁面 | 幫助 | 聊天