heartin's picture

DynamoDB Time-to-Live (TTL)

DynamoDB Time-to-Live (TTL) is a mechanism that lets you set a specific timestamp to delete expired items from your tables. Once the timestamp expires, the corresponding item is marked as expired and is subsequently deleted from the table. TTL can help you reduce storage usage and reduce the cost of storing data that is no longer relevant.


Use cases

There are two main scenarios where TTL can come in handy: