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
TTL support for DynamoDB backend #265
Comments
Hello @Avinm If dynamoDb has TTL feature, there are nothing that prevents to add TTL to DynamoDb integration. Feel free to prepare pull request if you have a time to do this. |
Yes, DynamoDB does have a TTL feature: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html |
Currently, I recommend to choose TTL by following criteria:
However, I want to notice that current support of TTL for redis is awkward and choosing right TTL is hard, and even impossible sometimes. There is better implementation of TTL in the CaffeineProxyManager that does not require to provide initial estimates, instead it relies on the time that required to full refilling of consumed tokens, keepAfterRefillDuration is not critical and can be zero. Please wait for Monday, I will add this concept to the AbstractCompareAndSwapBasedProxyManager and you will be able to write the code similar that written in CaffeineProxyManager. |
…mpareAndSwapOperation, SelectForUpdateBasedTransaction and LockBasedTransaction. In order to provide ability for accurate TTL calculation.
@Avinm the branch 7.6 is the right branch to start your pull request. RedissonBasedProxyManager has been modified in this branch, use it as example of flexible TTL calculation. |
Is this issue still relevant? @Avinm are you working on this ? |
Hello @augustlakia The issue is actual. It should be easy exercise, but I have not time currently to accomplish it, so you are welcome to provide pull-request. |
@augustlakia |
Declined |
I noticed that the redis implementation has an option to add TTL and dynamo one does not.
Was this ever considered?
Could try raising a PR if there's nothing blocking the implementation.
The text was updated successfully, but these errors were encountered: