-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Add dynamodb cache adapter #41498
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
Comments
Using DynamoDB as a cache is possible but Im not sure it is optimal. If you are in the AWS ecosystem, the button for creating an ElasticCache with Redis is so close to creating a new DynamoDB. I would be happy to add a PSR-6 integration for DynamoDB to AsyncAWS. We can also depend on Symfony's cache component if that would make things easier for us. But Im really on the fence that this would be a popular adapter for most Symfony users. |
Yes of course this make no doubt. Using elasticache is easy, but implies creating a lot of AWS resources. Depending on your compute ressources use cases (lambda, ecs, eks, app runner, ...) :
Regarding optimal/non optimal concern. Yes, standard/traditionnal use of DynamoDB is probably sub optimal vs redis. But the point is that since june 2017 Amazon has released DAX (DynamoDB Accelerator) and this solution is now repertoried aside of elasticache.
Makes sense indeed to start by adding PSR-6 integration into AsyncAWS. And regarding Symfony ease of integration do you mind to manage that inside AsyncAWS bundle?
Hope too. |
Thank you for this suggestion. |
Could I get an answer? If I do not hear anything I will assume this issue is resolved or abandoned. Please get back to me <3 |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
Description
Add a new adapter in the cache component to be able to use couchbase as a cache system. DynamoDB is very similar to Couchbase which has been added in 2019 #32038.
💡 Good to know is that if you deploy php app as AWS Lambda, mosft of the time if you want a shared cache like redis, you need to put them into a VPC in odrer to use AWS elasticache. Having a lambda in a VPC augments deployment complexity and it's not always a good idea if you just need a redis cache.
There's already an issue opened on async-aws async-aws/aws#998 and also this bundle. And since Amazon has released DAX maybe could a good cache solution? ping 🤔 @Nyholm
The text was updated successfully, but these errors were encountered: