Hi I want to deploy my full stack project to AWS ECS. If I understand it correctly there are 3 possibilities to deploy frontend and backend in ECS:
Frontend and Backend are in the same Task-Definition, same Cluster and same Service (1 Task-Definition, 1 Cluster, 1 Service)
Frontend and Backend have their own Task-Definition. They are in the same Cluster and running in two Services (2 Task-Definition, 1 Cluster, 2 Services)
Frontend and Backend have their own Task-Definition, their own Cluster and own Service (2 Task-Definition, 2 Cluster, 2 Services)
I already tried the first solution, which worked very well. So what is the best solution to deploy it? What are the pros and cons for each solution?
I also want to develop an app (in the future with the same backend) so I think solution two is therefor better than one. I guess solution one is cheaper because I run less tasks?