Demystify ECS and
Fargate
JIMMY DAHLQVIST
AWS Day of containers | 2024-05-21
@jimmydahlqvist
JIMMY DAHLQVIST
Head of AWS @ Sigma Technology Cloud
Founder of serverless-handbook.com
Blogging on jimmydqv.com
AWS Community Builder | User Group Leader | AWS Ambassador
Hello, I'm
@jimmydahlqvist
Todays agenda
• ECS and Fargate overview
• Common use-cases
• Customer use-cases
• Summary
ECS
@jimmydahlqvist
Container Orchestration
• Fully managed container orchestrator
• No control plane to upgrade
• Built in auto scaling
• Self-healing
• It enables you to easily run, scale, and secure Docker container applications on AWS.
@jimmydahlqvist
Key features
• Fully Managed
• No need to operate your own cluster management infrastructure.
• High Performance
• Optimized for running containerized.
• Seamless Integration
• Integrates with other AWS services.
Fargate
@jimmydahlqvist
Serverless Containers
Serverless-(ish)
• Managed by AWS.
• No EC2 instances to
mange or scale.
• Simple operations model.
Secure
• Isolated and patched by
AWS.
Cost-efficient
• Elastic, scale to your need
• Granular resource
allocation.
• Nothing to patch or mange.
@jimmydahlqvist
Sharing is not caring
Each Fargate task has its own isolation and don’t share any underlying, kernel, CPU, memory, ENI, etc.
@jimmydahlqvist
Graviton
• Run containers on ARM based CPU
• Best price / performance metric
• Fargate enable easy migration
Common use cases
@jimmydahlqvist
Batch processing
• Run tasks on-demand
• As target for EventBridge
• Easy to scale
• Cost-Efficient
@jimmydahlqvist
Machine learning
• Serverless inference
• Easy to deploy and scale
• Cost efficient
@jimmydahlqvist
CI/CD
• Runner for GitHub / GitLab
• Scale as needed
@jimmydahlqvist
Other Use-cases
• Web applications / microservice backend
• IoT applications
• Application migration
• Development environments
Customer use cases
@jimmydahlqvist
FinTech startup
• Market leader in unsecured loans
• Small development team
• Migrated application micro-service backend to Fargate and Graviton.
• 22% cost reduction
• Reduced operational overhead
@jimmydahlqvist
Global Enterprise
• IoT backend – 10th of thousands of devices
• CI/CD runners
• Self-hosted GitLab runners
• Reduces operational overhead
• Migrated 95% to Graviton
@jimmydahlqvist
eSport Startup
• Startup – very small development team
• Remove operational overhead
• Focus on business logic
• Migrated to Graviton – 27% cost reduction
Summary
B
B
@jimmydahlqvist
dahlqvistjimmy
https://serverless-handbook.com
https://jimmydqv.com

AWS ECS and AWS Fargate demystified: run serverless containers

Editor's Notes

  • #3 Hi! I'm Jimmy! I have worked with AWS and severless since 2015, almost a decade now, and I have seen all kind of strange things. I’m a true serverless enthusiast, the very first solution I built on AWS was serverless and I have not looked back since. I have built serverless solutions for a variaty of companies, from startups to large enterpices. I'm the founder of serverless-handbook.com where you can find all kind of serverless things that i have built, ranging from workshops to small architecture patterns. And I have my blog on Jimmydqv.com As a day-time job, and yes, I do have a daytime job, I know people have been questioning that. I work as Head of AWS at Sigma Technology Cloud, we are an advanced services partner with AWS and do all kind of fun solutions. If you like to know more about us, visit our booth outside.... I'm AWS Ambassador, AWS Community Builder and one of user Group leader for the Scania user group.