1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
If you want to run flask on serverless there are some options;
- Typically dockerize your app and run lambda as container. This option can be tried with https://github.com/awslabs/aws-lambda-web-adapter. Zip or containerize the app and that adapter allows you to run them in lambdas.
- use ECS Fargate (considered serverless).
Both would probably benefit in pushing images to ECR, which then can be used as trigger for a code pipeline, faily well documented pattern.
In terms of comparing Fargate and lambda, it will also depend on traffic as lambda may fit a pay as you go price where traffic is not high and stable.
Fargate in the other hand is more suitable for stable traffic.
In regards to costs still depends. In most cases lambda is cheaper as Fargate does not really scale to zero, but if traffic is intense and massive, a container may be more suited.
Hope it helps
Relevant content
- asked 2 years ago
- Accepted Answerasked 6 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago