Python deploy provides two serverless deployment options for your application:
- Lambda functions
- Fargate ECS provider
Fargate ECS provider
With Fargate your application is executed using Docker containers.
With this deployment you get to run two different processes, one to handle HTTP requests and one (optional) to handle background tasks or jobs.
The only requirement for this to work is that your web container must listen for HTTP requests.
With Lambda functions your container is executed only when you receive requests, and Amazon starts as many Lambda instances as it deems necessary to handle all of them.
With this deployment you get a Lambda function that handles you HTTP requests, and one that handles SQS messages to run background tasks.
If there are no incoming requests, no Lambas are triggered.