actix / actix-extras

A collection of additional crates supporting the actix and actix-web frameworks.
https://actix.rs
Apache License 2.0
755 stars 191 forks source link

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

Open jeastham1993 opened 7 months ago

jeastham1993 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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