ECS vs. EKS (2021)

,

I would like to know what benefits EKS offers over ECS which justifies the extra effort and the extra cost?

What limitations does ECS has?
The only thing that comes to mind is that i can‘t switch to another cloud.
Would love to hear some benefits.

ECS is custom built container orchestration from AWS. You run entirely in their ecosystem, operating the way AWS says containers should run. You pay for the underlying compute resources. There are serious limitations compared to Kubernetes but it’s much easier to get started especially if you’re already well invested in other AWS offerings.

EKS is managed Kubernetes. You pay for AWS to operate and run the control plane that creates rhe cluster, in a secure and HA manner. You also pay for the underlying compute resources of the worker nodes. EKS brings you into the k8s ecosystem which offers far more freedom of how you run and operate your software, but with more complexity. IMO it also has broader appeal for hiring - you’re more likely to find someone who knows or wants to learn k8s than you would ECS/fargate.

Ask yourself whether you want to invest your time and effort into getting really good at the AWS ecosystem of tools and services or the CNCF tools and services. Otherwise, they’re container management platforms and will probably do what you need.

ECS should be cheaper. with EKS, you have to pay for the control / master nodes. With ECS, its part of the amazon console and therefore you don’t have to spin up extra nodes you pay for.

ECS is definitely more limiting, but with a bit of creativity, you can make it work just as well of EKS without the added complexity.

The recruiting piece is actually really critical. Right now you’re going to be able to grow and scale a team way better if you invest in k8s as a way for that team to build and maintain services.

Kubernetes is a pretty standard platform nowadays, you’ll get way more resources, libraries, tools, etc…

Fargate is a bit of a confound as you can use it with EKS to save on server O&M and improve security:

https://docs.aws.amazon.com/eks/latest/userguide/fargate.html

I think the hiring question is more complicated, too: most of what you need for ECS are core AWS skills (IAM, networking, load balancing, CloudWatch, etc.) which are in high demand and most of those are necessary for a k8s deployment, too.

If you have plans for world domination, use k8s. If you just have some containers you want orchestrated without a lot of hassle, use ECS/Fargate.

This has not been my experience: K8S has a lot of buzz but a lot of that is aspirational, and the downside of more control & flexibility is that you need to hire more people to build and maintain the extra services you aren’t outsourcing to the platform.

Alternatively, ask yourself if you want to invest in maintaining a K8S ecosystem, vs ‘just run the containers’.

I’m coming from EC2 and Fargate systems and migrating to EKS now. There’s still a lot of ECS specific knowledge you need, and yah people can pick that up its not hard. Its more that in ECS you’ve got to walk down the AWS path, straight and narrow, and you’re more likely to find candidates interested in Kubernetes than in ECS.

EKS all day. The industry is clearing moving forward Kubernetes. The game changer with Kubernetes in AWS is ACK. It lets you control other AWS resources through the Kubernetes API. Traditionally you had Terraform for the AWS API, and something like Ansible for the configuration management of instances. With ACK the two apis, Kubernetes and AWS, become one. Which then is like merging the two tools Terraform and Ansible. It gets away from the left hand doesn’t know what the right hand is doing. It gives whoever is writing the yaml or helm chart access to all the resources at once.

https://aws.amazon.com/blogs/containers/aws-controllers-for-kubernetes-ack/

ECS is incomplete without other AWS services like Secrets Manager and Parameter Store. Which are both not great services. The ECS console is a hot mess.

Yeah, it definitely hits the trade offs for portability. I’m generally of the opinion that people over-estimate the benefits of multicloud and underestimate the costs, but the appeal is obvious and pretty widespread.

ECS is awesome. That’s my review.

ECS is most definitely compatible with secrets. We use it in production.

If I’m running one or two one-off containers I’ll put them in ECS. If there’s a microservice app with multiple pieces that need to communicate with each other, I’ll use EKS simply because I know how to build the networking in k8s and would rather use Helm to manage the whole thing.

As others mentioned:

  • EKS - Managed Kubernetes that costs a minimum of $72/month. Benefit is that it’s kubernetes. It’s better option that hosting / managing your own Kubernetes cluster(s) on EC2.

  • ECS - AWS’s own container orchestration in a nutshell. A lot easier to use (in my opinion) and basically offloads the responsibility of maintaining on to AWS.

What it comes down to is a question - do you foresee in the future migrating / switch cloud providers often? As much as the is brought up, the reality is that companies don’t switch cloud providers that often. Switching cloud providers is not just a cloud provider question, but a question of people as well (do you have the right resources to be able to support the move and maintenance afterwards?)

Someone wrote this quote which I 100% agree with:

Unless you have a specific reason, I say it’s best to avoid complicated tooling until later. k8s, ci, etc are all really useful and solve a lot of hard problems, but god are they a bitch to set up and then monitor, fix when something weird happens, secure from nasty people outside, patch when some update becomes necessary, resist the urge to “improve”, etc. This doesn’t include the time it takes to work these tools into your project, like k8s for example really requires you grok its model of how stuff it runs is supposed to look. There’s a reason entire companies exist that simply offer managed versions of these services!

If I was a brand new company today, I would aim for speed and simplicity. I would use ECS.

costs a minimum of $72/month

Along with your other points, I would add that if you’re a company that’s at a size that would balk at that $72/month, that’s probably a strong indicator that Kubernetes is probably not something that should be on the table right now.

The ECS console is a hot mess.

Imagine doing stuff in the console.

Exactly, K8S is a full time job or two in and of itself. If you’re not at a size to really reap the benefits from it, it shouldn’t be your go-to. If you’re already containerized, you won’t have a ton a re-work going from ECS to EKS.