- Mais recentes
- Mais votos
- Mais comentários
Hi,
You don't specify if you use a specific Python application framework like Flask.
So, here is an AWS-proposed architecture for a Flask-based application: https://github.com/aws-samples/three-tier-web-application-flask
It is quite thorough with muliple AZs, Load Balancer, etc.
Best,
Didier
If the usage level is fairly constant and you want to keep it on EC2 then right-size the instance type so you're only paying for the compute that you need. And consider a reserved instance to reduce costs over the longer-term.
If usage level varies the consider putting the EC2 instances into an auto-scaling group that grows and shrinks as required.
Although as EC2 can take a while to provision on-the-fly, you may want to containerise the application to mitigate this, and improve the user experience.
As your code is already written in Python it could be a good candidate for Lambda function, and implement the whole thing using a fan-out architecture. Caution here that a Lambda function has a maximum run time of 15 minutes, so each discrete invocation of the function would have to be less than this (if it's longer you could consider a Step Function, although it's probably better off on EC2 or containers in that case).
Conteúdo relevante
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 3 anos
It looks very complete, we will discuss with developer, we are consider app runner for this too. Thanks for your answer.