DEV Community

Roman
Roman

Posted on

AWS Elastic Container Service Cheat Sheet

Elastic Container Service

  • Microservices are built in multiple programming languages
  • Containers simplify deployment of microservices:
    • Step 1 : Create a self contained Docker image
    • Application Runtime (JDK or Python), Application code and Dependencies
    • Step 2 : Run it as a container any where Local machine OR Corporate data center OR Cloud
  • Use On-Demand instances or Spot instances
  • Launch type: EC2 or Fargate
  • Data volumes attached to containers
  • Deployment type:
    • Rolling update
    • Blue/green deployment (powered by AWS CodeDeploy)
  • Task Placement Strategies:
    • binpack - Leave least amount of unused CPU or memory. Minimizes number of container instances in use
    • random - Random task placement
    • spread - Based on specified values:
    • Host (instanceId)
    • (OR) Availability Zone(attribute:ecs.availability-zone)
    • (Alowed) Combine strategies and prioritize
  • How do you manage 100s of containers?
  • ECS - Fully managed service for container orchestration
    • Step 1 : Create a Cluster (Group of one or more EC2 instances)
    • Step 2: Deploy your microservice containers
  • AWS Fargate: Serverless ECS. DON'T worry about EC2 instances.
  • Cloud Neutral: Kubernetes
    • AWS - AWS Elastic Kubernetes Service (EKS)
  • Load balancing:
    • Performed using Application Load Balancers
    • Dynamic host port mapping: Multiple tasks from the same service are allowed per EC2 (container) instance
    • Path-based routing: Multiple services can use the same listener port on same ALB and be routed based on path (www.myapp.com/microservice-a and www.myapp.com/microservice-b)

Elastic Container Service

Runner H image

Forgot Again? Let Runner H Fix It For You

From booking the restaurant to sending the invite and apology message — Runner H makes it up for you. Yes, even your mess-ups are now automated.

Try Runner H

Top comments (0)

Dev Diairies image

User Feedback & The Pivot That Saved The Project

🔥 Check out Episode 3 of Dev Diairies, following a successful Hackathon project turned startup.

Watch full video 🎥

👋 Kindness is contagious

Explore this compelling article, highly praised by the collaborative DEV Community. All developers, whether just starting out or already experienced, are invited to share insights and grow our collective expertise.

A quick “thank you” can lift someone’s spirits—drop your kudos in the comments!

On DEV, sharing experiences sparks innovation and strengthens our connections. If this post resonated with you, a brief note of appreciation goes a long way.

Get Started