Ravi Sir's Cards › AWS
When does DynamoDB TTL fit?
TTL removes expired rows in the background. Enable it on a numeric Unix-seconds attribute such as expiresAt. Reject an expired session or OTP in the application even while its DynamoDB row still exists. When data needs archiving or exact workflow visibility, use an explicit job and conditional writes.
Read card text
What this card says
Eventual deletion
TTL removes expired rows in the background. Enable it on a numeric Unix-seconds attribute such as expiresAt.
App expiry
Reject an expired session or OTP in the application even while its DynamoDB row still exists.
Archive workflow
When data needs archiving or exact workflow visibility, use an explicit job and conditional writes.