![](/img/trans.png)
[英]Google Cloud Pub/Sub with ordering keys & multiple consumers on same subscription
[英]google cloud pub sub multiple subscriber for the same message with the same subscription
我正在使用 GCP Pub/Sub 實現事件驅動。
我有一個名為 orders 的主題,該主題將有一個名為orderPlacedSubscription
的訂閱 我有兩個服務想要監聽這個訂閱的所有消息並執行不同的操作,所以我有 paymentService 和 notificationService,paymentService 將監聽每條過濾的消息通過orderPlacedSubscription
並處理付款以及通知服務將偵聽相同的消息並發送通知。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.