Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google cloud pub/sub subscription durability?

I have been reading about Google Cloud Pub/Sub on their website, and it looks like a messaging solution that I have implemented, but I would consider moving to it so that my team does not have to maintain that code base. One detail that I have not seen the answer to, so far, is regarding the durability of subscriptions, topics, etc, after service restarts. I have probably missed it, and I am sure that this question must be answered somewhere, but if someone could point me to that information, I would be grateful. Thanks in advance!

like image 430
Steve Storck Avatar asked Jun 28 '26 14:06

Steve Storck


1 Answers

From the Google Cloud Pub/Sub FAQ:

Are messages durable or persistent if the subscriber is not present?

Yes. The Pub/Sub system guarantees that subscriptions retain unacknowledged messages in persistent storage for 7 days from the moment they were published. In addition, note that subscriptions whose client presence has not been detected for 30 days may be automatically deleted. For example, if messages are pulled within 30 days of the last Pull operation, this has the effect of restarting the 30 day clock for the subscription deletion; however, any messages published before 7 days may be lost regardless of their acknowledgment state.

UPDATE:

Now you can go to this page, in the Subscription section: enter image description here

Thanks to @dxps for the update!

like image 185
Victor M Herasme Perez Avatar answered Jul 01 '26 05:07

Victor M Herasme Perez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!