1
votes

We want to use AWS Dynamodb Streams to manage a subscription renewal service as outlined in the documentation here https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/time-to-live-ttl-streams.html.

AWS also states that the TTL actual deletion can take up to 48 hours. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/howitworks-ttl.html

If we set a TTL on a record in Dynamodb for 30 minutes would we get the expired event after 30 minutes or would it be 30 minutes plus up to 48 hours for the actual deletion event?

1
30 minutes plus up to 48 hours is my understandingMark B

1 Answers

0
votes

There is no "expired event"...

So you'd get the actual delete event at some point within 48 hours of the expiration..

You can tell the delete was done by AWS due to a TTL expiring by looking for

Records[<index>].userIdentity.type  
"Service"

Records[<index>].userIdentity.principalId  
"dynamodb.amazonaws.com"