[英]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.