DEV Community

Discussion on: Deploy Your React App to ECS (Fargate)

Collapse
 
saudansari profile image
Saud

Whats the benefit of hosting a react app on fargate as compared to S3? React files are built into static files which don't require a run-time. So, why would you put it on fargate?

Collapse
 
mubbashir10 profile image
Mubbashir Mustafa • Edited

Both are two different models of deployments. Instead of S3 vs ECS, you probably want to know about the benefits of containerized applications. Once you have the idea of why should we containerize our application then ECS comes into play. And then your question would be something like why should we use ECS instead of beanstalk (or other container services)?

So at this point, you need to understand the benefits of containerization in general.

Collapse
 
syqrefind profile image
Daniel Shen • Edited

Could you elaborate your answer a bit more? It would really be helpful if you could point out some of the reasons why we want to containerize a React app, or any other SPA. Thanks in adavance.