简体   繁体   English

即使将确认截止日期设置为 600 秒,Pub/Sub 也会在 10 秒后重新发送消息。 如何克服这个问题?

[英]Pub/Sub re-sending message after 10 sec even setting ack deadline 600 sec. How to overcome this issue?

I'm using Pub/Sub for message delivery and I have set the ack.我正在使用 Pub/Sub 进行消息传递,并且我已经设置了 ack。 deadline 600 sec which is maximum but still If I'm not able to process that record within 10sec then It re-sends the same message again.截止日期 600 秒,这是最大值,但仍然如果我无法在 10 秒内处理该记录,那么它会再次重新发送相同的消息。 Because of this, It's delivering a duplicate message.因此,它传递了重复的消息。

So, Is there anything else I need to configure in Pub/Sub subscription?那么,我还需要在 Pub/Sub 订阅中配置什么吗? I have also configured the Retry policy as Immediate, should I set it so exponential back off?我还将重试策略配置为立即,我应该将其设置为指数级后退吗?

Cloud Pub/Sub supported client libraries update the ack deadlines automatically. Cloud Pub/Sub 支持的客户端库会自动更新确认截止日期。

Please consider exploring Exactly once delivery to avoid duplicate deliveries.请考虑探索Exactly once delivery以避免重复交付。

Related answer: Pub/Sub - Acknowledgement deadline is ignored when used Exactly once delivery相关答案: Pub/Sub - 使用时忽略确认截止日期 Exactly once delivery

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修改 GCP Pub/Sub 上推送订阅消息的确认截止日期? - How to modify ack deadline for a push subscription message on GCP Pub/Sub? Pub/Sub 测试:即使通过了 ack_deadline,客户端也会收到消息 - Pub/Sub testing: message received by client even when ack_deadline is passed Dataflow Pub/Sub 流作业卡住并不断修改消息的 ACK 截止日期 - Dataflow Pub/Sub streaming jobs get stuck and keep modifying ACK deadline of messages 如何将消息内容添加到 Google Pub/Sub 的结果中? - How to add the message content to the results in Google Pub/Sub? BigQuery 可以发送发布/订阅消息吗? - Can BigQuery send a pub/sub message? Google Cloud Pub/Sub 按 ID 检索消息 - Google Cloud Pub/Sub retrieve message by ID Apache beam 似乎正在截断 pub sub 消息有效负载 - Apache beam seems to be truncating pub sub message payload 即使增加了 app_start_timeout_sec,App 引擎 404 错误也无法进行就绪检查 - App engine 404 Error for readiness check even with increased app_start_timeout_sec 当单个负载大于 10KiB/秒时,Cloud Firestore 中的快照侦听器性能会发生什么变化? - What happens to snapshot listener performance in Cloud Firestore when individual payload is greater than 10KiB/sec? 为什么 GCP Pub/Sub 发布消息两次? - Why does GCP Pub/Sub publish a message twice?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM