4. What are containers?
• OS virtualization
• Process isolation
• Images
• AutomationServer
Guest OS
Bins/Libs Bins/Libs
App2App1
5. Container advantages
Portable
Same Immutable Images. Run anywhere.
Flexible
Create Modular Environments. Decompose Apps
Fast
Speeds up build and release cycle
Efficient
Optimize resource utilization
Server
Guest OS
Bins/Libs Bins/Libs
App2App1
18. Pattern 1: Services and applications
• Simple to model
• Micro services
• Blue / green
deployments
Phong Nguyen, Founder at Gilt
Groupe, said, "As we Dockerize
all our services, it is very
important for us to have a
platform that can help us speed
up deployments, automate our
services, and gain greater
efficiencies. The new service
scheduler and ELB integration
make Amazon ECS an excellent
platform for our services.”
19. Pattern 2: Batch jobs
• Share resource pools
• Ideal for bursty jobs
• Spot instances
“We required a solution on which
we could securely and efficiently
deploy Docker containers to
encapsulate learner
programming assignment
submissions,” said Brennan
Saeta, Architect at Coursera. “We
are using Amazon EC2 Container
Service to power our new
programming assignments
infrastructure for next-generation
On-Demand course platform.”
34. Key Components: Update Service
• Deploy new version
• Drain connections
Elastic Load Balancing
35. Key Components: Update Service
• Deploy new version
• Drain connections
Elastic Load Balancing
36. Key Components: Update Service
• Deploy new version
• Drain connections
Elastic Load Balancing
37. More resources
• Service Discovery via Consul with ECS:
– https://aws.amazon.com/blogs/compute/service-discovery-via-
consul-with-amazon-ecs/
• Running an Amazon ECS Task on every instance:
– https://aws.amazon.com/blogs/compute/running-an-amazon-ecs-
task-on-every-instance/
• Set up a build pipeline with Jenkins and ECS:
– https://blogs.aws.amazon.com/application-
management/post/Tx32RHFZHXY6ME1/Set-up-a-build-pipeline-
with-Jenkins-and-Amazon-ECS