SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
Containers and Serverless Computing:
Selecting the Right Platform for Your Application
Phil Christensen
Sr. Solutions Architect, DevOps Engineer
©2017 Logicworks. All rights reserved.
About Logicworks and Me
2
Phil Christensen
Sr. Solutions Architect
Logicworks
§ 15+ years of experience in software
engineering and cloud
§ Formerly Sr. DevOps Engineer
§ Hold all 5 AWS Certifications
Logicworks designs, builds,
automates, and manages AWS clouds.
Cloud Migration
24/7 Management
Cloud Automation
Cloud Security
The standard deployment model for
applications is changing rapidly.
Containers Serverless
</> </> </>
</> </> </>
</> </> </>
©2017 Logicworks. All rights reserved.
Let’s Build Reusable Artifacts!
5
§ Decrease deployment time
§ Leverage the power of CI/CD
§ Every artifact created by a specific
recipe or manifest
§ A common interface reduces
operational complexity
§ The exact same artifact is run in local
development, production, or any
other part of the SDLC
©2017 Logicworks. All rights reserved.
Why Containers?
6
Docker containers
provide a packaging
standard and a
common interface for
running, deploying, and
managing workloads on
compute instances.
SERVER
APP1
Host OS
APP4
APP2
APP3
SERVER
Host OS
APP1
APP4
APP2
APP3
DockerAPP5
APP5
©2017 Logicworks. All rights reserved.
§ Container runs on top of your preferred
workstation OS
§ Run with reduced memory or CPU usage
in development
§ Finished image moved as-in to
deployment server
Local Development
7
The first benefit of a containerized
development approach is the ability
to deploy the exact same artifact to
your server that was created in
development.
DEV WORKSTATION
Host OS
APP
Docker
SERVER
Host OS
Docker
APP
APP
APP
©2017 Logicworks. All rights reserved.
§ Container image behaves the same on any host
§ Complex dependencies are only compiled or
assembled at image build time
§ Safely encapsulate applications requiring older
Linux distributions
Container Portability
8
Container portability simplifies
deployment process and reduces the
likelihood of deployment failure
QA
Host OS
APP
Docker
APP
APP
APP
STAGING
Host OS
Docker
APP
APP
APP
PRODUCTION
Host OS
Docker
APP
APP
APP
APP
APP
Container Orchestration
©2017 Logicworks. All rights reserved.
Benefits
§ Already deployed with Docker
§ Simplest configuration, integrates with Docker-
Compose
Considerations
§ Limited cloud integration
§ Service discovery by DNS only
§ One ELB per cluster
Option 1: Docker Swarm
Orchestration Options
10
©2017 Logicworks. All rights reserved.
Benefits
§ Most feature-filled orchestration layer
§ Large community support
§ Many deployment options
§ Powerful, built-in container discovery
Considerations
§ Most complex install/configuration
process
§ Difficult to stay up to date
Option 2: Kubernetes
Orchestration Options
11
Developer /
Operator
API Server Controller Manager
Scheduler
etcd
Kubernetes Master
Kubelet
Kubernetes Node
cAdvisor Kube-Proxy
Pod Pod Pod
Kubelet
Kubernetes Node
cAdvisor Kube-Proxy
Pod Pod Pod
Plugin Network (eg Flannel, Weavenet, etc)
Users
©2017 Logicworks. All rights reserved.
Benefits
§ Highest capacity for scale
§ Deeply integrated with AWS
ecosystem
Considerations
§ Amazon cloud-only deployment
§ Container discovery requires third-
party applications like Consul
Option 3: Amazon Elastic Container Service
Orchestration Options
12
©2017 Logicworks. All rights reserved.
Achieving High Availability
13
Docker Swarm Kubernetes AWS ECS
Management Tier A 3-5 node manager tier
responds to requests on a
single ELB, delegates to N
worker nodes
§ A 3-5 node master tier responds to API
calls and web requests, delegates to N
minion nodes.
§ Services can leverage individual ELBs
directly, or define NodePorts that are
routed through the master tier.
§ Control plane fully managed by
AWS
§ ALB and ELB route traffic to
appropriate containers
Management Tier
Failure
Manager nodes must
maintain a quorum, but a
failed manager will continue
to run services
Master nodes must maintain a quorum,
and a failed master tier will cause most
services to fail
No single point of failure in managed
control plane.
Worker Nodes
Replaced?
Lost worker nodes
automatically replaced
Lost minion nodes automatically replaced Worker nodes are easily added,
replaced, or removed
Updates Cluster can be upgraded in-
place
In-place cluster upgrades still maturing,
3rd-party distributions may differ
Agent upgrades can be performed in-
place
©2017 Logicworks. All rights reserved.
Cluster Capacity
14
Docker Swarm Kubernetes AWS ECS
Optimized For Optimized for multiple smaller
clusters per SDLC
Optimized for a single large cluster Optimized for one cluster per SDLC
Load Balancing Load balancer limitations can
arise with specific SSL or
DNS requirements
Namespaces help organize SDLCs, or
delegate access to sets of containers.
§ Best-in breed container
AutoScaling
§ Native ALB support
Node Support Supports 2000+ nodes Supports up to 5000 nodes Supports up to 1000 nodes
Container Limit Limited to 95,000 containers Limited to 300,000 containers Limited to 500,000 containers
©2017 Logicworks. All rights reserved.
How Deployments Work
15
Docker Swarm Kubernetes AWS ECS
Deployment
Details
§ Simple docker CLI
commands invoked on
management node.
§ Uses Docker-Compose for
configuration Limited
support for secrets
§ Support for rolling updates
§ Largest number of deployment options
§ Kubectl CLI can be run from anywhere
with access to master tier API
§ Native “Deployment” type provides
robust interface for updates, secrets,
and infrastructure management
§ Deepest integration with other AWS
services like CodeBuild, ECR
§ Best-in-breed support for ALB
Target Groups
§ Can be invoked via the AWS API
§ Support for Docker-Compose
manifests
AWS Resources
Need to be Pre-
Created?
Yes No, will manage and create necessary
AWS resources.
Yes
©2017 Logicworks. All rights reserved.
Example Container Pipeline
16
§ Modify the source
§ Commit changes
§ Webhook triggers
build
§ Pull source
§ Compile assets
§ Run tests
§ Build container
§ Push container
§ Private image
repository
§ AM-based
authentication
§ CloudWatch events
trigger Lambda on
push event
§ Lambda invokes
Kubernetes API to
publish Deployment
§ Native k8s deployment
process allows for
seamless updates
Serverless
©2017 Logicworks. All rights reserved.
You are exchanging flexibility for scale.
What is Serverless?
18
©2017 Logicworks. All rights reserved.
§ Quick start-up times
§ Shared compute pool
§ No need for orchestration – cloud provider
handles it for you
§ You only pay for what you use
§ Deploy arbitrarily many development instances
at little to no cost
Why Serverless?
19
§ Less flexibility around development techniques
§ Limited to supported frameworks (Sorry Ruby
fans!)
§ Reduced access to native functionality (binding
to custom C libraries)
§ Limits on function execution time
Benefits Considerations
©2017 Logicworks. All rights reserved.
§ A typical server is up to 80% idle of most of
the time
§ Traditional development instances either
need to be parked, spun down, or deleted
when not in use
§ For bigger workloads, there’s a break-even
point where below a minimum throughput,
you’re still better off writing Lambda functions
§ Focus on the memory and execution time
that a typical transaction in your app will
need
Cost Effectiveness of Serverless
20
Exec Time @
Memory Used
m4.large Break-
Even Point
Requests Per
Second
100ms @ 128 MB 295,000 requests 81.9
200ms @ 512 MB 64,000 requests 17.8
200ms @ 1GB 34,000 requests 9.4
1 sec @ 1GB 7,100 requests 2.0
AWS Lambda Pricing in Context, by Andy Warzon @ trek10.com
©2017 Logicworks. All rights reserved.
§ Limited runtime to ensure one function
doesn’t dominate over others behind
the scenes
§ More complex workflow requires an
understanding of asynchronous
techniques
§ Step Functions used to aggregate
multiple functions into a larger
application
Asynchronous
21
Find Instances
Count Instances
Iterator
Iterate Instances
Done Select Backup Type
Create SnapshotCreate AmiEnd
Start
©2017 Logicworks. All rights reserved.
§ Lambda is dramatically less
expensive
§ It takes a great deal of compute
volume before Lambda
approaches EC2 costs
§ TCO is greatly reduced, little to
no need to manage infrastructure
Good Use Cases for Serverless
22
Periodic or Light Workloads API-Only Applications Long Running or Deeply Integrated
AWS Scripts or Applications
§ Tight integration between API
Gateway and Lambda allows for
easy API creation
§ API Gateway helpers can provide
authentication and other
functions
§ Frequently used management
scripts are best created as
Lambda functions
§ Execution time limits encourage
planning ahead for large
resource counts
</>API
©2017 Logicworks. All rights reserved.
Lowest Common Denominator
23
©2017 Logicworks. All rights reserved.
Autonomous IT
24
Serverless
©2017 Logicworks. All rights reserved.
Most Efficient Scaling
25
Serverless
©2017 Logicworks. All rights reserved.
Best Scale for Conventional Software
26
Amazon ECS
©2017 Logicworks. All rights reserved.
Exchange Simplicity for Flexibility
27
©2017 Logicworks. All rights reserved.
Standard Management Layer
for Undifferentiated Compute
28
©2017 Logicworks. All rights reserved.
§ Train your IT staff
§ Give expert advice about the right DevOps
tools for your application
§ Build a new AWS environment optimized for
containers
§ Provide 24x7 support for AWS infrastructure
Logicworks can help you:
Come Talk to Me!
29
www.logicworks.com
info@logicworks.com
(212) 625-5300
§ CONTACT US
155 Avenue of the Americas, Fifth Floor | New York, NY 10013
P:212.625.5300 | www.logicworks.com
Questions?

Weitere ähnliche Inhalte

Was ist angesagt?

Scale your application to new heights with NGINX and AWS
Scale your application to new heights with NGINX and AWSScale your application to new heights with NGINX and AWS
Scale your application to new heights with NGINX and AWSNGINX, Inc.
 
10 Key Steps for Moving from Legacy Infrastructure to the Cloud
10 Key Steps for Moving from Legacy Infrastructure to the Cloud10 Key Steps for Moving from Legacy Infrastructure to the Cloud
10 Key Steps for Moving from Legacy Infrastructure to the CloudNGINX, Inc.
 
Securing Databases with Dynamic Credentials and HashiCorp Vault
Securing Databases with Dynamic Credentials and HashiCorp VaultSecuring Databases with Dynamic Credentials and HashiCorp Vault
Securing Databases with Dynamic Credentials and HashiCorp VaultMitchell Pronschinske
 
Introduction to the DevNet Sandbox and IVT
Introduction to the DevNet Sandbox and IVTIntroduction to the DevNet Sandbox and IVT
Introduction to the DevNet Sandbox and IVTCisco DevNet
 
What’s New with NGINX Controller Load Balancing Module 2.0?
What’s New with NGINX Controller Load Balancing Module 2.0?What’s New with NGINX Controller Load Balancing Module 2.0?
What’s New with NGINX Controller Load Balancing Module 2.0?NGINX, Inc.
 
The good, the bad, and the ugly of migrating hundreds of legacy applications ...
The good, the bad, and the ugly of migrating hundreds of legacy applications ...The good, the bad, and the ugly of migrating hundreds of legacy applications ...
The good, the bad, and the ugly of migrating hundreds of legacy applications ...Josef Adersberger
 
Patterns and Pains of Migrating Legacy Applications to Kubernetes
Patterns and Pains of Migrating Legacy Applications to KubernetesPatterns and Pains of Migrating Legacy Applications to Kubernetes
Patterns and Pains of Migrating Legacy Applications to KubernetesJosef Adersberger
 
Cloud Bursting: Leveraging the Cloud to Maintain App Performance during Peak ...
Cloud Bursting: Leveraging the Cloud to Maintain App Performance during Peak ...Cloud Bursting: Leveraging the Cloud to Maintain App Performance during Peak ...
Cloud Bursting: Leveraging the Cloud to Maintain App Performance during Peak ...Veritas Technologies LLC
 
VMware NSX for vSphere - Intro and use cases
VMware NSX for vSphere - Intro and use casesVMware NSX for vSphere - Intro and use cases
VMware NSX for vSphere - Intro and use casesAngel Villar Garea
 
VMworld 2014: Advanced Topics & Future Directions in Network Virtualization w...
VMworld 2014: Advanced Topics & Future Directions in Network Virtualization w...VMworld 2014: Advanced Topics & Future Directions in Network Virtualization w...
VMworld 2014: Advanced Topics & Future Directions in Network Virtualization w...VMworld
 
VMworld 2014: Introduction to NSX
VMworld 2014: Introduction to NSXVMworld 2014: Introduction to NSX
VMworld 2014: Introduction to NSXVMworld
 
Orchestrating stateful applications with PKS and Portworx
Orchestrating stateful applications with PKS and PortworxOrchestrating stateful applications with PKS and Portworx
Orchestrating stateful applications with PKS and PortworxVMware Tanzu
 
Améliorer OpenStack avec les technologies Intel
Améliorer OpenStack avec les technologies IntelAméliorer OpenStack avec les technologies Intel
Améliorer OpenStack avec les technologies IntelOdinot Stanislas
 
Cncf kanister.pptx
Cncf kanister.pptxCncf kanister.pptx
Cncf kanister.pptxLibbySchulze
 
From Containerized Application to Secure and Scaling With Kubernetes
From Containerized Application to Secure and Scaling With KubernetesFrom Containerized Application to Secure and Scaling With Kubernetes
From Containerized Application to Secure and Scaling With KubernetesShikha Srivastava
 
CSTA - Cisco Security Technical Alliances, New Ecosystem Program Built on the...
CSTA - Cisco Security Technical Alliances, New Ecosystem Program Built on the...CSTA - Cisco Security Technical Alliances, New Ecosystem Program Built on the...
CSTA - Cisco Security Technical Alliances, New Ecosystem Program Built on the...Cisco DevNet
 
Examining Technical Best Practices for Veritas and AWS Using a Detailed Refer...
Examining Technical Best Practices for Veritas and AWS Using a Detailed Refer...Examining Technical Best Practices for Veritas and AWS Using a Detailed Refer...
Examining Technical Best Practices for Veritas and AWS Using a Detailed Refer...Veritas Technologies LLC
 

Was ist angesagt? (20)

Scale your application to new heights with NGINX and AWS
Scale your application to new heights with NGINX and AWSScale your application to new heights with NGINX and AWS
Scale your application to new heights with NGINX and AWS
 
10 Key Steps for Moving from Legacy Infrastructure to the Cloud
10 Key Steps for Moving from Legacy Infrastructure to the Cloud10 Key Steps for Moving from Legacy Infrastructure to the Cloud
10 Key Steps for Moving from Legacy Infrastructure to the Cloud
 
Securing Databases with Dynamic Credentials and HashiCorp Vault
Securing Databases with Dynamic Credentials and HashiCorp VaultSecuring Databases with Dynamic Credentials and HashiCorp Vault
Securing Databases with Dynamic Credentials and HashiCorp Vault
 
Citrix Day 2014: NetScaler 10.5
Citrix Day 2014: NetScaler 10.5Citrix Day 2014: NetScaler 10.5
Citrix Day 2014: NetScaler 10.5
 
Introduction to the DevNet Sandbox and IVT
Introduction to the DevNet Sandbox and IVTIntroduction to the DevNet Sandbox and IVT
Introduction to the DevNet Sandbox and IVT
 
What’s New with NGINX Controller Load Balancing Module 2.0?
What’s New with NGINX Controller Load Balancing Module 2.0?What’s New with NGINX Controller Load Balancing Module 2.0?
What’s New with NGINX Controller Load Balancing Module 2.0?
 
The good, the bad, and the ugly of migrating hundreds of legacy applications ...
The good, the bad, and the ugly of migrating hundreds of legacy applications ...The good, the bad, and the ugly of migrating hundreds of legacy applications ...
The good, the bad, and the ugly of migrating hundreds of legacy applications ...
 
Patterns and Pains of Migrating Legacy Applications to Kubernetes
Patterns and Pains of Migrating Legacy Applications to KubernetesPatterns and Pains of Migrating Legacy Applications to Kubernetes
Patterns and Pains of Migrating Legacy Applications to Kubernetes
 
Cloud Bursting: Leveraging the Cloud to Maintain App Performance during Peak ...
Cloud Bursting: Leveraging the Cloud to Maintain App Performance during Peak ...Cloud Bursting: Leveraging the Cloud to Maintain App Performance during Peak ...
Cloud Bursting: Leveraging the Cloud to Maintain App Performance during Peak ...
 
VMware NSX for vSphere - Intro and use cases
VMware NSX for vSphere - Intro and use casesVMware NSX for vSphere - Intro and use cases
VMware NSX for vSphere - Intro and use cases
 
VMworld 2014: Advanced Topics & Future Directions in Network Virtualization w...
VMworld 2014: Advanced Topics & Future Directions in Network Virtualization w...VMworld 2014: Advanced Topics & Future Directions in Network Virtualization w...
VMworld 2014: Advanced Topics & Future Directions in Network Virtualization w...
 
nsx overview with use cases 1.0
nsx overview with use cases 1.0nsx overview with use cases 1.0
nsx overview with use cases 1.0
 
VMworld 2014: Introduction to NSX
VMworld 2014: Introduction to NSXVMworld 2014: Introduction to NSX
VMworld 2014: Introduction to NSX
 
Orchestrating stateful applications with PKS and Portworx
Orchestrating stateful applications with PKS and PortworxOrchestrating stateful applications with PKS and Portworx
Orchestrating stateful applications with PKS and Portworx
 
Améliorer OpenStack avec les technologies Intel
Améliorer OpenStack avec les technologies IntelAméliorer OpenStack avec les technologies Intel
Améliorer OpenStack avec les technologies Intel
 
Cncf kanister.pptx
Cncf kanister.pptxCncf kanister.pptx
Cncf kanister.pptx
 
Wind River - OpenStack in Israel
Wind River - OpenStack in IsraelWind River - OpenStack in Israel
Wind River - OpenStack in Israel
 
From Containerized Application to Secure and Scaling With Kubernetes
From Containerized Application to Secure and Scaling With KubernetesFrom Containerized Application to Secure and Scaling With Kubernetes
From Containerized Application to Secure and Scaling With Kubernetes
 
CSTA - Cisco Security Technical Alliances, New Ecosystem Program Built on the...
CSTA - Cisco Security Technical Alliances, New Ecosystem Program Built on the...CSTA - Cisco Security Technical Alliances, New Ecosystem Program Built on the...
CSTA - Cisco Security Technical Alliances, New Ecosystem Program Built on the...
 
Examining Technical Best Practices for Veritas and AWS Using a Detailed Refer...
Examining Technical Best Practices for Veritas and AWS Using a Detailed Refer...Examining Technical Best Practices for Veritas and AWS Using a Detailed Refer...
Examining Technical Best Practices for Veritas and AWS Using a Detailed Refer...
 

Ähnlich wie Docker vs. Kubernetes vs. Serverless

How to Architect AWS for Mission-Critical Applications
How to Architect AWS for Mission-Critical ApplicationsHow to Architect AWS for Mission-Critical Applications
How to Architect AWS for Mission-Critical ApplicationsLogicworksNYC
 
Deep Dive on REX-Ray, libStorage and the Container Storage Interface - Clinto...
Deep Dive on REX-Ray, libStorage and the Container Storage Interface - Clinto...Deep Dive on REX-Ray, libStorage and the Container Storage Interface - Clinto...
Deep Dive on REX-Ray, libStorage and the Container Storage Interface - Clinto...{code} by Dell EMC
 
Pivotal cloud cache for .net microservices
Pivotal cloud cache for .net microservicesPivotal cloud cache for .net microservices
Pivotal cloud cache for .net microservicesJagdish Mirani
 
DevOps and BigData Analytics
DevOps and BigData Analytics DevOps and BigData Analytics
DevOps and BigData Analytics sbbabu
 
Developing Microservices Directly in AKS/Kubernetes
Developing Microservices Directly in AKS/KubernetesDeveloping Microservices Directly in AKS/Kubernetes
Developing Microservices Directly in AKS/KubernetesChakradhar Rao Jonagam
 
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...Ludovic Piot
 
Introduction to Apache Mesos and DC/OS
Introduction to Apache Mesos and DC/OSIntroduction to Apache Mesos and DC/OS
Introduction to Apache Mesos and DC/OSSteve Wong
 
Large Scale Cassandra Made Better in Containers - Chris Duchesne and Aaron Sp...
Large Scale Cassandra Made Better in Containers - Chris Duchesne and Aaron Sp...Large Scale Cassandra Made Better in Containers - Chris Duchesne and Aaron Sp...
Large Scale Cassandra Made Better in Containers - Chris Duchesne and Aaron Sp...{code} by Dell EMC
 
Running SQL Server on AWS | John McCormack | DataGrillen 2019
Running SQL Server on AWS | John McCormack | DataGrillen 2019Running SQL Server on AWS | John McCormack | DataGrillen 2019
Running SQL Server on AWS | John McCormack | DataGrillen 2019John McCormack
 
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...VMworld
 
Containers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red HatContainers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red HatAmazon Web Services
 
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...Amazon Web Services
 
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Emerson Eduardo Rodrigues Von Staffen
 
Introduction to Google Cloud Services / Platforms
Introduction to Google Cloud Services / PlatformsIntroduction to Google Cloud Services / Platforms
Introduction to Google Cloud Services / PlatformsNilanchal
 
Architecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-PracticesArchitecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-PracticesAmazon Web Services
 
Kubernetes is all you need
Kubernetes is all you needKubernetes is all you need
Kubernetes is all you needVishwas N
 
Structured Container Delivery by Oscar Renalias, Accenture
Structured Container Delivery by Oscar Renalias, AccentureStructured Container Delivery by Oscar Renalias, Accenture
Structured Container Delivery by Oscar Renalias, AccentureDocker, Inc.
 
Serverless design considerations for Cloud Native workloads
Serverless design considerations for Cloud Native workloadsServerless design considerations for Cloud Native workloads
Serverless design considerations for Cloud Native workloadsTensult
 

Ähnlich wie Docker vs. Kubernetes vs. Serverless (20)

How to Architect AWS for Mission-Critical Applications
How to Architect AWS for Mission-Critical ApplicationsHow to Architect AWS for Mission-Critical Applications
How to Architect AWS for Mission-Critical Applications
 
Deep Dive on REX-Ray, libStorage and the Container Storage Interface - Clinto...
Deep Dive on REX-Ray, libStorage and the Container Storage Interface - Clinto...Deep Dive on REX-Ray, libStorage and the Container Storage Interface - Clinto...
Deep Dive on REX-Ray, libStorage and the Container Storage Interface - Clinto...
 
Pivotal cloud cache for .net microservices
Pivotal cloud cache for .net microservicesPivotal cloud cache for .net microservices
Pivotal cloud cache for .net microservices
 
DevOps and BigData Analytics
DevOps and BigData Analytics DevOps and BigData Analytics
DevOps and BigData Analytics
 
Developing Microservices Directly in AKS/Kubernetes
Developing Microservices Directly in AKS/KubernetesDeveloping Microservices Directly in AKS/Kubernetes
Developing Microservices Directly in AKS/Kubernetes
 
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
 
Introduction to Apache Mesos and DC/OS
Introduction to Apache Mesos and DC/OSIntroduction to Apache Mesos and DC/OS
Introduction to Apache Mesos and DC/OS
 
Large Scale Cassandra Made Better in Containers - Chris Duchesne and Aaron Sp...
Large Scale Cassandra Made Better in Containers - Chris Duchesne and Aaron Sp...Large Scale Cassandra Made Better in Containers - Chris Duchesne and Aaron Sp...
Large Scale Cassandra Made Better in Containers - Chris Duchesne and Aaron Sp...
 
Running SQL Server on AWS | John McCormack | DataGrillen 2019
Running SQL Server on AWS | John McCormack | DataGrillen 2019Running SQL Server on AWS | John McCormack | DataGrillen 2019
Running SQL Server on AWS | John McCormack | DataGrillen 2019
 
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
 
Docker with devops program
Docker with devops programDocker with devops program
Docker with devops program
 
Docker with devops program
Docker with devops programDocker with devops program
Docker with devops program
 
Containers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red HatContainers Anywhere with OpenShift by Red Hat
Containers Anywhere with OpenShift by Red Hat
 
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
 
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
 
Introduction to Google Cloud Services / Platforms
Introduction to Google Cloud Services / PlatformsIntroduction to Google Cloud Services / Platforms
Introduction to Google Cloud Services / Platforms
 
Architecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-PracticesArchitecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-Practices
 
Kubernetes is all you need
Kubernetes is all you needKubernetes is all you need
Kubernetes is all you need
 
Structured Container Delivery by Oscar Renalias, Accenture
Structured Container Delivery by Oscar Renalias, AccentureStructured Container Delivery by Oscar Renalias, Accenture
Structured Container Delivery by Oscar Renalias, Accenture
 
Serverless design considerations for Cloud Native workloads
Serverless design considerations for Cloud Native workloadsServerless design considerations for Cloud Native workloads
Serverless design considerations for Cloud Native workloads
 

Kürzlich hochgeladen

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 

Kürzlich hochgeladen (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Docker vs. Kubernetes vs. Serverless

  • 1. Containers and Serverless Computing: Selecting the Right Platform for Your Application Phil Christensen Sr. Solutions Architect, DevOps Engineer
  • 2. ©2017 Logicworks. All rights reserved. About Logicworks and Me 2 Phil Christensen Sr. Solutions Architect Logicworks § 15+ years of experience in software engineering and cloud § Formerly Sr. DevOps Engineer § Hold all 5 AWS Certifications Logicworks designs, builds, automates, and manages AWS clouds. Cloud Migration 24/7 Management Cloud Automation Cloud Security
  • 3. The standard deployment model for applications is changing rapidly.
  • 4. Containers Serverless </> </> </> </> </> </> </> </> </>
  • 5. ©2017 Logicworks. All rights reserved. Let’s Build Reusable Artifacts! 5 § Decrease deployment time § Leverage the power of CI/CD § Every artifact created by a specific recipe or manifest § A common interface reduces operational complexity § The exact same artifact is run in local development, production, or any other part of the SDLC
  • 6. ©2017 Logicworks. All rights reserved. Why Containers? 6 Docker containers provide a packaging standard and a common interface for running, deploying, and managing workloads on compute instances. SERVER APP1 Host OS APP4 APP2 APP3 SERVER Host OS APP1 APP4 APP2 APP3 DockerAPP5 APP5
  • 7. ©2017 Logicworks. All rights reserved. § Container runs on top of your preferred workstation OS § Run with reduced memory or CPU usage in development § Finished image moved as-in to deployment server Local Development 7 The first benefit of a containerized development approach is the ability to deploy the exact same artifact to your server that was created in development. DEV WORKSTATION Host OS APP Docker SERVER Host OS Docker APP APP APP
  • 8. ©2017 Logicworks. All rights reserved. § Container image behaves the same on any host § Complex dependencies are only compiled or assembled at image build time § Safely encapsulate applications requiring older Linux distributions Container Portability 8 Container portability simplifies deployment process and reduces the likelihood of deployment failure QA Host OS APP Docker APP APP APP STAGING Host OS Docker APP APP APP PRODUCTION Host OS Docker APP APP APP APP APP
  • 10. ©2017 Logicworks. All rights reserved. Benefits § Already deployed with Docker § Simplest configuration, integrates with Docker- Compose Considerations § Limited cloud integration § Service discovery by DNS only § One ELB per cluster Option 1: Docker Swarm Orchestration Options 10
  • 11. ©2017 Logicworks. All rights reserved. Benefits § Most feature-filled orchestration layer § Large community support § Many deployment options § Powerful, built-in container discovery Considerations § Most complex install/configuration process § Difficult to stay up to date Option 2: Kubernetes Orchestration Options 11 Developer / Operator API Server Controller Manager Scheduler etcd Kubernetes Master Kubelet Kubernetes Node cAdvisor Kube-Proxy Pod Pod Pod Kubelet Kubernetes Node cAdvisor Kube-Proxy Pod Pod Pod Plugin Network (eg Flannel, Weavenet, etc) Users
  • 12. ©2017 Logicworks. All rights reserved. Benefits § Highest capacity for scale § Deeply integrated with AWS ecosystem Considerations § Amazon cloud-only deployment § Container discovery requires third- party applications like Consul Option 3: Amazon Elastic Container Service Orchestration Options 12
  • 13. ©2017 Logicworks. All rights reserved. Achieving High Availability 13 Docker Swarm Kubernetes AWS ECS Management Tier A 3-5 node manager tier responds to requests on a single ELB, delegates to N worker nodes § A 3-5 node master tier responds to API calls and web requests, delegates to N minion nodes. § Services can leverage individual ELBs directly, or define NodePorts that are routed through the master tier. § Control plane fully managed by AWS § ALB and ELB route traffic to appropriate containers Management Tier Failure Manager nodes must maintain a quorum, but a failed manager will continue to run services Master nodes must maintain a quorum, and a failed master tier will cause most services to fail No single point of failure in managed control plane. Worker Nodes Replaced? Lost worker nodes automatically replaced Lost minion nodes automatically replaced Worker nodes are easily added, replaced, or removed Updates Cluster can be upgraded in- place In-place cluster upgrades still maturing, 3rd-party distributions may differ Agent upgrades can be performed in- place
  • 14. ©2017 Logicworks. All rights reserved. Cluster Capacity 14 Docker Swarm Kubernetes AWS ECS Optimized For Optimized for multiple smaller clusters per SDLC Optimized for a single large cluster Optimized for one cluster per SDLC Load Balancing Load balancer limitations can arise with specific SSL or DNS requirements Namespaces help organize SDLCs, or delegate access to sets of containers. § Best-in breed container AutoScaling § Native ALB support Node Support Supports 2000+ nodes Supports up to 5000 nodes Supports up to 1000 nodes Container Limit Limited to 95,000 containers Limited to 300,000 containers Limited to 500,000 containers
  • 15. ©2017 Logicworks. All rights reserved. How Deployments Work 15 Docker Swarm Kubernetes AWS ECS Deployment Details § Simple docker CLI commands invoked on management node. § Uses Docker-Compose for configuration Limited support for secrets § Support for rolling updates § Largest number of deployment options § Kubectl CLI can be run from anywhere with access to master tier API § Native “Deployment” type provides robust interface for updates, secrets, and infrastructure management § Deepest integration with other AWS services like CodeBuild, ECR § Best-in-breed support for ALB Target Groups § Can be invoked via the AWS API § Support for Docker-Compose manifests AWS Resources Need to be Pre- Created? Yes No, will manage and create necessary AWS resources. Yes
  • 16. ©2017 Logicworks. All rights reserved. Example Container Pipeline 16 § Modify the source § Commit changes § Webhook triggers build § Pull source § Compile assets § Run tests § Build container § Push container § Private image repository § AM-based authentication § CloudWatch events trigger Lambda on push event § Lambda invokes Kubernetes API to publish Deployment § Native k8s deployment process allows for seamless updates
  • 18. ©2017 Logicworks. All rights reserved. You are exchanging flexibility for scale. What is Serverless? 18
  • 19. ©2017 Logicworks. All rights reserved. § Quick start-up times § Shared compute pool § No need for orchestration – cloud provider handles it for you § You only pay for what you use § Deploy arbitrarily many development instances at little to no cost Why Serverless? 19 § Less flexibility around development techniques § Limited to supported frameworks (Sorry Ruby fans!) § Reduced access to native functionality (binding to custom C libraries) § Limits on function execution time Benefits Considerations
  • 20. ©2017 Logicworks. All rights reserved. § A typical server is up to 80% idle of most of the time § Traditional development instances either need to be parked, spun down, or deleted when not in use § For bigger workloads, there’s a break-even point where below a minimum throughput, you’re still better off writing Lambda functions § Focus on the memory and execution time that a typical transaction in your app will need Cost Effectiveness of Serverless 20 Exec Time @ Memory Used m4.large Break- Even Point Requests Per Second 100ms @ 128 MB 295,000 requests 81.9 200ms @ 512 MB 64,000 requests 17.8 200ms @ 1GB 34,000 requests 9.4 1 sec @ 1GB 7,100 requests 2.0 AWS Lambda Pricing in Context, by Andy Warzon @ trek10.com
  • 21. ©2017 Logicworks. All rights reserved. § Limited runtime to ensure one function doesn’t dominate over others behind the scenes § More complex workflow requires an understanding of asynchronous techniques § Step Functions used to aggregate multiple functions into a larger application Asynchronous 21 Find Instances Count Instances Iterator Iterate Instances Done Select Backup Type Create SnapshotCreate AmiEnd Start
  • 22. ©2017 Logicworks. All rights reserved. § Lambda is dramatically less expensive § It takes a great deal of compute volume before Lambda approaches EC2 costs § TCO is greatly reduced, little to no need to manage infrastructure Good Use Cases for Serverless 22 Periodic or Light Workloads API-Only Applications Long Running or Deeply Integrated AWS Scripts or Applications § Tight integration between API Gateway and Lambda allows for easy API creation § API Gateway helpers can provide authentication and other functions § Frequently used management scripts are best created as Lambda functions § Execution time limits encourage planning ahead for large resource counts </>API
  • 23. ©2017 Logicworks. All rights reserved. Lowest Common Denominator 23
  • 24. ©2017 Logicworks. All rights reserved. Autonomous IT 24 Serverless
  • 25. ©2017 Logicworks. All rights reserved. Most Efficient Scaling 25 Serverless
  • 26. ©2017 Logicworks. All rights reserved. Best Scale for Conventional Software 26 Amazon ECS
  • 27. ©2017 Logicworks. All rights reserved. Exchange Simplicity for Flexibility 27
  • 28. ©2017 Logicworks. All rights reserved. Standard Management Layer for Undifferentiated Compute 28
  • 29. ©2017 Logicworks. All rights reserved. § Train your IT staff § Give expert advice about the right DevOps tools for your application § Build a new AWS environment optimized for containers § Provide 24x7 support for AWS infrastructure Logicworks can help you: Come Talk to Me! 29 www.logicworks.com info@logicworks.com (212) 625-5300 § CONTACT US
  • 30. 155 Avenue of the Americas, Fifth Floor | New York, NY 10013 P:212.625.5300 | www.logicworks.com Questions?