How are you planning to deploy? • How are you planning to manage .env and logs? • How to scale out and in? (manually?) • How about the software updates to EC2? Laravel Proxy - https:/ /laravel.com/docs/10.x/requests#configuri ng-trusted-proxies - Redirects - Login issues because Multiple EC2 Instances
We don’t want to scale in and out manually, we want something that can automate - We want to take advantage of cloud manage services instead of managing everything How to use ASG? - Choose AMI (Ubuntu) and install softwares that you want to use (Golden Image) - Set min and max instances in specific conditions (when CPU% reach, Memory% reach, In this date)
Serverless (Fargate), no need to manage servers - Containerized How to use ECS? - Dockerize your application - Create task definition (port mapping, cpu, memory allocation)
ECS, EKS) - You need to know how underlying stuff work. Like Eloquent ORM. - If your application have heavy search functionality, better explore options like ES - EKS - Laravel Vapor (Serverless) - IAC (Infrastructure as Code) Things to note Elastic Container Service (ECS)