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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good content, thanks for writing this. I just wonder, what's the difference between running on Fargate vs. EC2?
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.
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.