简体   繁体   中英

Is there a way to define a TTL for an topic in spring-cloud-stream-pubsub?

We have some short lived messages about some data changes. I would like to limit the time, pubsub stores this messages to a few minutes or hours.

I found some settings for spring-cloud-stream-rabbitmq to set ttl - but nothing for PubSub.

You can pass various parameters that would suit your needs such as --expiration-period or --message-retention-duration when you create a subscription with gcloud beta pubsub subscriptions create . You can check more here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM