0% found this document useful (0 votes)
66 views

Mod 9 Containers

Uploaded by

Idris Yusuf
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views

Mod 9 Containers

Uploaded by

Idris Yusuf
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 35

Architecting on AWS

Module 9: Containers

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Poll question What percentage of your workloads run on
containers?

A. Less than 10 percent

B. 10–50 percent

C. More than 50 percent

D. I’m not sure

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
Module overview
• Business requests
• Microservices
• Containers
• Container services
• Present solutions
• Knowledge check

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
Business requests The compute operations manager wants to know:
• How can we make components of our
applications more independent so changes in
one service will not affect any other?
• What are the benefits of using containers for our
compute needs?
• What options do we have for managing
containerized applications in the cloud?

Compute Operations
Manager

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 4
Microservices

“How can we make components of our applications more independent so


changes in one service will not affect any other?”

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Loose coupling

Anti-pattern Best practice

Web servers Web servers

Elastic
Web servers Decoupled with a
Load
tightly coupled to load balancer Balancing
application servers

Application Application
servers servers

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
Microservices

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
Containers

“What are the benefits of using containers for our compute needs?”

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Containers

Containers are: Dependencies


Configuration (environmental
• Repeatable
consistency)
• Self-contained
environments
• Faster to spin
up and down
than VMs Code
Runtime engine
• Portable
• Scalable

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
Containers and microservices

Monolithic order application Microservice order application

Ordering UI Reporting Marketing


UI UI
Order Order Order
history history history

Inventory Inventory Email

Mailing Sales Sales


logic history history

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12
Levels of abstraction and virtualization

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13
Containers on AWS
Containers on Amazon Containers with an
EC2 orchestration tool
• Running containers
directly on Amazon
EC2 requires you to
manage scaling,
connectivity, and
maintenance.
• Using an orchestration
tool helps manage:
• Scheduling
• Placement
• Networking
• Monitoring

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14
Container services

“What options do we have for managing containerized applications in the


cloud?”

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Running containers on AWS

Pulls container Orchestration Deploys container Container


Registry image from the to hosting resource
registry tool hosting

Amazon Elastic Container Amazon Elastic Amazon Elastic AWS Fargate Amazon EC2
Registry (Amazon ECR) Kubernetes Service Container Service
(Amazon EKS) (Amazon ECS)

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16
Amazon ECR

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17
Amazon ECS orchestration

Managed container
orchestration service
tightly integrated with
AWS
• Pulls images from
your repositories
• ECS services scale
service capacity by
managing container
count
• ECS clusters scale
hosting capacity

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
Amazon ECS features

Fully managed Service discovery

Amazon ECS

AWS integrations Works with common


development workflows
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 19
Monolithic to container-based microservices

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 20
Amazon EKS

Run applications at Seamlessly move


scale applications

Run anywhere Add new functionality

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
Amazon EKS solutions

Fargate
Deploy serverless
containers.

Amazon EKS Provision an Connect to Run Kubernetes


Run Kubernetes on AWS. Amazon EKS Amazon EKS. applications.
cluster.
Amazon EC2
Deploy worker nodes
for your Amazon EKS
cluster.

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22
AWS Fargate

Amazon ECS
or
AWS Fargate
Launch containers Manage containers
Build a container Launch containers,
image. Fargate runs your Amazon ECS scales
Amazon EKS and Fargate manages containers for your applications and
all of the underlying you. manages your
Define the images container containers for
and resources infrastructure. availability.
needed for your
app.

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24
Choosing AWS container services

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25
Review

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Present Consider how you would answer the
solutions following:
• How can we make components of our
applications more independent so changes in
one service will not affect any other?
• What are the benefits of using containers for our
compute needs?
• What options do we have for managing
containerized applications in the cloud?
Compute Operations
Manager

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 31
Module review

In this module you learned about:


Microservices
Containers
Container services

Next, you will review:


Knowledge check

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 32
Knowledge check

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
33
Knowledge check question 1

Which of the following are characteristics of microservices? (Select TWO.)

A Loosely coupled

B Redundant

C Autonomous and independent

D Tightly integrated

E Interdependent components

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 34
Knowledge check question 1 and answer

Which of the following are characteristics of microservices? (Select TWO.)

A
correct
Loosely coupled

B Redundant

C
correct
Autonomous and independent

D Tightly integrated and dependent

E Interdependent components

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 35
Knowledge check question 2

Which of the following are characteristics of containers? (Select TWO.)

A Portable and scalable

B Requires a hypervisor

C Automatic

D Repeatable

E Each requires its own operating system

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 36
Knowledge check question 2 and answer

Which of the following are characteristics of containers? (Select TWO.)

A
correct
Portable and scalable

B Requires a hypervisor

C Automatic

D
correct
Repeatable

E Each requires its own operating system

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 37
Knowledge check question 3

Containers in Amazon ECS are logically organized in:

A A cluster

B Pods

C EBS volumes

D Amazon S3

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 38
Knowledge check question 3 and answer

Containers in Amazon ECS are logically organized in:

A
correct
A cluster

B Pods

C EBS volumes

D Amazon S3

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 39
Knowledge check question 4

Why would you choose to deploy your containers to AWS Fargate over Amazon EC2?

A To take control of your infrastructure

B To avoid manual infrastructure updates

C To optimize price for a large load

D To manage your own patches and updates

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 40
Knowledge check question 4 and answer

Why would you choose to deploy your containers to AWS Fargate over Amazon EC2?

A To take control of your infrastructure

B
correct
To avoid manual infrastructure updates

C To optimize price for a large load

D To manage your own patches and updates

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 41
End of Module 9

Corrections, feedback, or other questions?


Contact us at https://support.aws.amazon.com/#/contacts/aws-training.
All trademarks are the property of their owners.

© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 42

You might also like