spcl/faaskeeper

Offline environment

开放

#25 创建于 2023年3月28日

 (2 条评论) (0 个反应) (0 位负责人)Python (13 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (24 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

  • Deploy serverless offline Lambda and test that functions can be invoked.
  • Deploy offline SQS and verify that we can use it to trigger functions.
  • Deploy offline DynamoDB and check that system state works.
  • Deploy offline S3 and verify that user data is persisted.
  • Adjust the client library to use the offline deployment when needed.

贡献者指南