spcl / faaskeeper

A fully serverless implementation of the ZooKeeper coordination protocol.
BSD 3-Clause "New" or "Revised" License
17 stars 13 forks source link

Offline environment #25

Open mcopik opened 1 year ago

mcopik commented 1 year ago

At the moment, we support deployment and execution at the AWS cloud only. This has several disadvantages: local environment would provide much quicker testing and development, and would allow others to test the code without having to pay for the AWS cloud.

In the past, we tried using serverless-offline packages, but these did not support triggering Lambda invocations from DynamoDB Streams. Fortunately, We added support for SQS invocations. We should develop a new config aws_offline.yml that will use the available offline components from the Serverless framework to deploy and execute FaaSKeeper locally. Since our system is complex and involves several services, we should build and test this iteratively.

useraid commented 6 months ago

For offline verification of AWS, won't tools such as localstack(https://github.com/localstack/localstack) be more useful? Integration of localstack doesn't seem to be difficult if it is added as an external dependency.

I'd love to contribute to the project, so let me know what do you think about this approach.

mcopik commented 6 months ago

@useraid Hi! Welcome to FaaSKeeper :-)

I'm fine with both approaches - I have little experience with serverless-offline and no experience with localstack. If you think it's a better choice, then sure!