Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECS with Fargate vs EC2 #5

Open
deniseddi opened this issue Apr 3, 2020 · 2 comments
Open

ECS with Fargate vs EC2 #5

deniseddi opened this issue Apr 3, 2020 · 2 comments
Assignees
Labels

Comments

@deniseddi
Copy link
Contributor

deniseddi commented Apr 3, 2020

  • Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service.(Docker)
  • For our project, ECS works better with Fargate (serveless) or Amazon EC2 instances?
  • This task will look into the pros/cons and which one is the most appropriate in our case.
@deniseddi
Copy link
Contributor Author

ECS with EC2:

  • Give us more control over the infrastructure
  • We get to choose what kind of scaling policies should be applied, what kind of instances to run, etc.
  • we have to scale, monitor, patch and secure the EC2 instances ourselves.
  • We need to manage the underlying cluster.
  • Comes with higher operational overhead.
  • the scaling is not easy.

ECS with Fargate:

  • Allows to run Docker containers without having to manage servers or clusters.
  • We need to specify the usage memory, CPU requirements, define IAM or networking policies.
  • We just have to focus on building and designing an application
  • Not well-suited for users who need greater control over their containers.
  • Low operational overhead, easier to operate.
  • Fargate tasks only support non-persistent storage volumes.
  • Lower flexibility in terms of resources available compared to the EC2 launch type.

Fargate equals to minimal maintenance and it is easily scalable. On the downside, Fargate is not designed for persistent data storage. Fargate is generally used for transient workloads and I am assuming our datastore would be something we would want to persist. We can run persistent storage volumes with ECS on EC2.

@deniseddi
Copy link
Contributor Author

Group decision was made to adopt ECS using the EC2 launch type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant