paragi / rocket-store-node

Rocket store for node
Other
9 stars 3 forks source link

Idea: implement s3 storage for using with Lambdas #9

Open vidanov opened 5 years ago

vidanov commented 5 years ago

My use case is the following -> I have some AWS Lambda cron jobs to execute and need to store their status in the database. I think DynamoDB is an overkill for it. Rocket Store with a S3 as a storage would be great.

paragi commented 5 years ago

It's a very good idea. I'm not working with AWS and don't have the time to catch up, at the moment. But I would be happy to assist you with a generic implementation. Could you be more specific as to what must be done, and what you need?

vidanov commented 5 years ago

I will take a look at your code and try to figure out how to make it effectively.

paragi commented 5 years ago

I'm curious about your use case? I had a brief look at S3 storage, that seem rather straight forward. So i Assume you have some cross platform purpose? or am I missing something?

vidanov commented 5 years ago

Mostly I use AWS serverless Lambdas for my development. They are stateless too and you need to have a DB if you need to save your data. Amazon offers to use AWS Dynamo DB or Aurora/RDS. I have scripts for some scheduled workflows where databases are overkill and the simple S3 storage should be ok. Your solution is so simple and straightforward for such cases.

vidanov commented 5 years ago

Another use case I have right now. I develop a Slack bot with the Slack Bolt framework. I created a small NodeJS server for it and use your Rocket-Store there as a small database for some user states. To make it scalable I would separate the database from the server itself. For the chatbot latencies the speed of S3 should be ok too.

paragi commented 5 years ago

Thank you. I'll keep it in mind, to when I have time to fiddle with new things, and interesting things :)

paragi commented 3 years ago

Do you have some working code for this? Could you make it a pull request?