rafaelrpinto / dynamodb-store Goto Github PK
View Code? Open in Web Editor NEWImplementation of a session storage using DynamoDB as an extension of the express-session middleware.
License: MIT License
Implementation of a session storage using DynamoDB as an extension of the express-session middleware.
License: MIT License
How to skip DynamoDB Table creation if already exists?
It return a error when try to create a table that already exist. What is the proper way to use this tool? Put a hash sufix in the name to avoid conflicts every deploy?
I was wondering, if it was possible to put the aws-sdk package in the optionalDependencies...
"optionalDependencies": {
"aws-sdk": "^2.100.0",
},
instead of the
"dependencies": {
"aws-sdk": "^2.100.0",
"express-session": "^1.15.5"
},
When i deploy with Claudia i use
claudia update --no-optional-dependencies....
to avoid sending 30Mo+ in lambda ( and a best practice also recommended by AWS)
But, i don't know, in sub-package, if the --no-optional-dependencies will be apply...
Example:
If i dont use dynamodb-store, its like 5-6-mo in lambda and when i use it, its like 10Mo+ just because it incluse aws-sdk...
Those that dont use --no-optional-dependencies will not be affected by that and those that want it will benefit of this... ( If this feature can be apply on sub-package)
Thanks!
Ps.: I love this tool it work great... ( Api Gateway + lambda + DynamoDB )
Yves Laroche
We should extract the CRUD DynamoDB methods from DynamoDBStore
to a SessionRepository
.
This way the store logic will be cleaner and we will be able to reduce the size of its unit test. Currently 500+ lines.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.