Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What is ECS, EKS, EC2 and Fargate?

Terai Shogo
February 17, 2022

What is ECS, EKS, EC2 and Fargate?

English Tech LT Jam feat.【アンドパッド|ユニファ|iCARE】( https://andpad.connpass.com/event/236753/ )で発表した内容です。

Terai Shogo

February 17, 2022
Tweet

More Decks by Terai Shogo

Other Decks in Technology

Transcript

  1. 2 iCARE Co.,Ltd Serverside engineer Shogo Terai I joined iCARE

    Co.,Ltd in August 2021 as a Serverside engineer. I usually develop Carely, the service of iCARE, by using Rails and GraphQL. About me
  2. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM 4 Two types

    of Container services provided by AWS &$4 &,4 &$ 'BSHBUF DPOUSPMQMBOF EBUBQMBOF BQMBDFUPNBOBHF DPOUBJOFST BQMBDFXIFSFDPOUBJOFST BDUVBMMZXPSL (changed based on https://dev.classmethod.jp/articles/cmdevio2019-container/)
  3. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM 6 ʲECSʳElastic Containers

    Service (control plane) • A service to manage containers that run in the cloud. • AWS will take care of installing the container execution environment, 
 building the deployment environment, and autoscaling on your behalf.
  4. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM 7 ʲEKSʳElastic Kubernetes

    Service (control plane) • A service that makes it easy to run Kubernetes on AWS. • Compared to ECS, it is capable of more advanced operations with richer functions. • Because it is a service that enables Kubernetes to run on AWS, 
 EKS has less affinity with other AWS services than ECS. • On the other hand, it is possible to use tools that have been developed for Kubernetes.
  5. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM 8 FYI :

    Kubernetes • Containers have the ability to run applications, but they do not have the ability to 
 manage them or link them with other containers. • Kubernetes solves this problem of not being able to collaborate, 
 and makes it possible to manage networks and storage in a coordinated manner.
  6. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM Difference between choosing

    ECS and EKS 9 ʲECSʳ • Smooth integration with other AWS services such as IAM control, 
 monitoring, logging, and deployment. • The current first choice of AWS. 
 ʲEKSʳ • It has a high degree of freedom and allows for more advanced operations. • You can use tools developed for Kubernetes. vs
  7. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM 10 ʲEC2ʳElastic Compute

    Cloud (data plane) • A service for building a virtual server in the cloud. • A server running on EC2 is called an EC2 instance. • There is a high degree of freedom in managing the OS, 
 products to be used, version, etc.
  8. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM 11 Fargate (data

    plane) • A service for running containers without operational management of the instances. • While the degree of freedom is low, AWS manages much of the work, 
 so there are fewer items that need to be managed.
  9. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM Difference between choosing

    EC2 and Fargate 12 ʲEC2ʳ • It needs to apply patches to OS and middleware, etc. 
 ʲFargateʳ • AWS will take care of the instance type settings, auto-scaling settings, 
 and cluster management. • Resource-optimized EC2 instances, such as GPU instances, 
 cannot be used. • the current first choice of AWS. vs
  10. Copyright ©iCARE Co.,Ltd All Rights Reserved. $POGJEFOUJBM 14 The result

    &$4 &,4 &$ 'BSHBUF DPOUSPMQMBOF EBUBQMBOF BQMBDFUPNBOBHF DPOUBJOFST BQMBDFXIFSFDPOUBJOFST BDUVBMMZXPSL (changed based on https://dev.classmethod.jp/articles/cmdevio2019-container/)