Idea
Ensure dotflow runs seamlessly on AWS Lambda with zero infrastructure beyond Lambda + S3. Provide deployment examples and validate all execution modes.
Motivation
Dotflow's key differentiator is zero-infra execution. A Lambda handler should be as simple as:
def handler(event, context):
config = Config(storage=StorageS3(bucket="workflows"))
workflow = DotFlow(config=config)
workflow.task.add(extract_data)
workflow.task.add(transform_data)
workflow.task.add(load_data)
workflow.start(mode="sequential", resume=True)
return workflow.result()
No server to maintain. No workers. No dedicated database. Just Lambda + S3.
Goals
- Validate
sequential mode works on Lambda without modification
- Document limitations of
parallel/background modes on Lambda
- Provide SAM and CDK deployment templates
- Provide example Lambda handler with S3 storage
- Ensure
StorageDefault (in-memory) works for stateless one-shot workflows
- Handle Lambda's
/tmp ephemeral storage for StorageFile fallback
- Test cold start performance with dotflow import
Deliverables
- Example project:
examples/aws-lambda-sequential/
- SAM template (
template.yaml)
- CDK example (optional)
- Documentation page on deploying to Lambda
- Benchmark: cold start time, execution overhead
Related issues
Idea
Ensure dotflow runs seamlessly on AWS Lambda with zero infrastructure beyond Lambda + S3. Provide deployment examples and validate all execution modes.
Motivation
Dotflow's key differentiator is zero-infra execution. A Lambda handler should be as simple as:
No server to maintain. No workers. No dedicated database. Just Lambda + S3.
Goals
sequentialmode works on Lambda without modificationparallel/backgroundmodes on LambdaStorageDefault(in-memory) works for stateless one-shot workflows/tmpephemeral storage forStorageFilefallbackDeliverables
examples/aws-lambda-sequential/template.yaml)Related issues