Spring Cloud Cloud Pub / Sub的通道適配器

2024-01-09 17:58 更新

Google Cloud Pub / Sub的通道適配器將您的Spring連接MessageChannels 到Google Cloud Pub / Sub主題和訂閱。這樣可以在由Google Cloud Pub / Sub備份的不同流程,應(yīng)用程序或微服務(wù)之間進(jìn)行消息傳遞。

spring-cloud-gcp-pubsub模塊中包含Spring Integration Google Cloud Pub / Sub的通道適配器。

Maven坐標(biāo),使用Spring Cloud GCP BOM:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-gcp-pubsub</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-core</artifactId>
</dependency>

Gradle坐標(biāo):

dependencies {
    compile group: 'org.springframework.cloud', name: 'spring-cloud-gcp-pubsub'
    compile group: 'org.springframework.integration', name: 'spring-integration-core'
}
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)