Cloud PubSub - NACKed 消息是否保留超过 7 天?

Cloud PubSub - Are NACKed messages retained beyond 7 days?

由于 'undelivered' 消息的最长保留时间为 7 天,我很好奇 NACK 在保留消息方面做了什么 'alive'。

例如,如果我在消息到期前一天 NACK 一条消息,它会在它被丢弃之前获得 7 天的新租约,还是它会在第二天自行死亡?

我不确定 how to interpret the language of this documentation 作为 NACKed 消息在技术上并没有失败传递,但已被订阅者拒绝。

"Delivered" 在这种情况下表示 "Google Cloud Pub/Sub sent the message to the subscriber and that subscriber acknowledged the message." 就像 UPS 要求包裹签名一样:包裹在您签收并取走时交付,而不是在他们敲门时交付在你的门上,你没有回答(或者 nack 等同于你说 "go away, I'm not coming to the door")。

7 天保留政策是从消息发布之时算起。如果消息被确认,时钟不会重置。如果订阅者在其到期时间前一天收到一条消息并拒绝它,则只会再尝试一天,而不是再尝试七天。