Amazon dax client not working as per TTL set on the item

0

I have raised a Stackoverflow question as well regarding this, you can find more info here - https://stackoverflow.com/questions/57492795/amazon-dax-client-not-working-as-per-ttl-set-on-the-item

I am not sure what I am doing wrong but I am not seeing consistent reads from DAX client in accordance with the TTL set on the item. Even after the TTL is expired, I still see the item being returned from the cache. Can you please let me know if there is anything I am missing here. The items exist in Dynamodb as well for some time even after the TTL time is passed.

preguntada hace 5 años562 visualizaciones
1 Respuesta
0

Hi Mahendranaga,

TTL deletion may not always happen at expiry time. You can learn more about how TTL works with DynamoDB and DAX in our docs here:

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/howitworks-ttl.html

Here's the relevant excerpt:
DynamoDB typically deletes expired items within 48 hours of expiration. The exact duration within which an item truly gets deleted after expiration is specific to the nature of the workload and the size of the table. Items that have expired and have not been deleted still appear in reads, queries, and scans. These items can still be updated, and successful updates to change or remove the expiration attribute are honored.

Edited by: ArturoAtAWS on Aug 15, 2019 1:27 PM

respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas