Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamoDB Read Consistency problem #11

Open
msimperi opened this issue Nov 23, 2021 · 0 comments
Open

DynamoDB Read Consistency problem #11

msimperi opened this issue Nov 23, 2021 · 0 comments

Comments

@msimperi
Copy link

The DynamoDB cache is great for many reasons, but there is small side-effect that might or might not be visible for the users. The DynamoDB default reading mode is "Eventually Consistent". DynamoDB can also be used in "Strongly Consistent" read mode, if you specify that when getting data.

E.g.

  1. Write data to cache
  2. Read data from cache

If 2nd step is not able to read always data from cache that 1st step wrote, it is usually a big problem e.g. with session. This consistent read might fail and if it fails, fall back to normal read is recommended.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html

What do you think? Is this something that could maybe be parametrised setting for the DynamoDB cache like TTL field?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant