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

Session: Add support for Amazon DynamoDB as session storage backend #383

Open
jeastham1993 opened this issue Jan 11, 2024 · 2 comments
Open
Labels
A-session Project: actix-session C-feature Category: new functionality

Comments

@jeastham1993
Copy link

jeastham1993 commented Jan 11, 2024

Feature Request

Add an additional SessionStore implementation to use Amazon DynamoDB as the session storage backend, as an alternative to Redis.

Add an implementation that uses DynamoDB instead of Redis, allowing configuration of the table, key and TTL names. I can contribute a PR for this implementation.

Context

Building a serverless application on AWS using Actix, and want to avoid using any AWS services that rely on a VPC. Currently I need to run an Elasticache cluster to get access to Redis.

@robjtede robjtede added A-session Project: actix-session C-feature Category: new functionality labels Jan 22, 2024
@robjtede
Copy link
Member

Since DynamoDB allowed TTL in records it is easily satisfies the requrements for the SessionStore trait. I'd be happy to see support for it included in actix-session.

@jeastham1993
Copy link
Author

Great, thanks @robjtede. I'll aim to get a PR raised this week.

@robjtede robjtede linked a pull request Jan 28, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-session Project: actix-session C-feature Category: new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants