DEV Community

Discussion on: How to deploy your app on AWS with Docker

Collapse
 
caroso1222 profile image
Carlos Roso

Good content, thanks for writing this. I just wonder, what's the difference between running on Fargate vs. EC2?

Collapse
 
edgargonzalez525 profile image
Edgar Gonzalez

hey Carlos, the difference is that with Fargate you don't need to take care of creating an EC2 instance neither on the EC2 instance RAM or Size, it's all specific to your service, but, if you need much more control over your instances EC2 can be a good choice.

Collapse
 
rolfstreefkerk profile image
Rolf Streefkerk

you can run timed tasks on Fargate, so if you have cron jobs running for instance that just need to start an Container to do its work, it's perfect solution for it. You only pay for what you use. The EC2 situation you're always paying for the runtime duration until you manually shut it down.