SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
1
Deploying MICROSERVICES
over
DOCKER SWARM
Sunil
Sunil
C O N T A I N E R I Z I N G T H E
MICROSERVICEARCHITECTURE
DOCKER
&
SWARM
ORCHESTRATION
2
TABLE OF CONTENT
Table of content 3.....................................................
Microservice architecture 6.....................................
What is Microservices
Monolithic Architecture
Microservices Architecture
Key Benets of Microservices
Drawbacks of Microservices
Devops 9....................................................................
How DevOps Works
DevOps principles
Benets of DevOps
How microservices enable DevOps
Microservices, when used Effectively
DevOps model and practices
Containerization 13...................................................
Containers versusVirtual Machines
Docker 15...................................................................
Docker Engine
Docker Architecture
Who is Docker for ?
Docker Features
Docker Alternatives
3
Orchestration 19.......................................................
Container Orchestration
What is container orchestration used for?
Container Orchestration Tools
Docker Swarm mode 22...........................................
Introduction
Microservices with docker 23..................................
Challenges of Building a Microservice Architecture
Docker to the Rescue for Microservices
Future scope with docker deployment 24.............
An analysis of current trends
About Me 26..............................................................
4
Page Left Intentionally
5
M I C R O S E R V I C E
ARCHITECTURE
What is Microservices
Microservices  are a software development technique —a
variant of the service-oriented  architecture  (SOA)
structural style— that arranges an application as a
collection of loosely coupled services. In a microservices
architecture, services are fine-grained and the protocols
are lightweight.
Microservices is an architectural style that structures an
application as a collection of services that are
• Highly maintainable and testable
• Loosely coupled
• Independently deployable
• Organized around business capabilities
• Owned by a small team
The microservice architecture enables the rapid, frequent
and reliable delivery of large, complex applications. It also
enables an organization to evolve its technology stack.
6
Monolithic Architecture
Microservices Architecture
7
Key Benefits of Microservices
The benefits that organizations realize from deploying
microservices include:
1. Improved scalability
2. Better fault isolation
3. Optimized scaling decisions
4. Localized complexity
5. Increased business agility
6. Increased developer productivity
7. Simplified debugging and maintenance
8. Future-proofed applications
9. Smaller and more agile development teams
Drawbacks of Microservices
The Microservice architectures do carry their own costs.
1. Microservice architectures can be complex. 
2. A microservices approach requires careful planning
3. Proper sizing of microservices is critical, and hard to
calculate
4. You may have little control over third-party
microservices
5. Downstream dependencies are difficult to track.
8
DEVOPS
DevOps is a set of software development practices that
combines software development (Dev) and information
technology operations (Ops) to shorten the systems
development life cycle while delivering features, fixes, and
updates frequently in close alignment with business
objectives.
How DevOps Works
Under a DevOps model, development and operations teams
are no longer “siloed.” Sometimes, these two teams are
merged into a single team where the engineers work across
the entire application lifecycle, from development and test
9
to deployment to operations, and develop a range of skills
not limited to a single function.
In some DevOps models, quality assurance and security
teams may also become more tightly integrated with
development and operations and throughout the
application lifecycle. When security is the focus of everyone
on a DevOps team, this is sometimes referred to as
DevSecOps.
These teams use practices to automate processes that
historically have been manual and slow. They use a
technology stack and tooling which help them operate and
evolve applications quickly and reliably. These tools also
help engineers independently accomplish tasks (for
example, deploying code or provisioning infrastructure)
that normally would have required help from other teams,
and this further increases a team’s velocity.
DevOps principles
Principles of DevOps are automation, continuous delivery,
and fast reaction to feedback. More detailed explanation of
DevOps pillars in the CAMS acronym:
Culture represented by human communication, technical
processes, and tools
Automation of processes
Measurement of KeyPrincipal Indicators
Sharing feedback, best practices, and knowledge
10
Adherence to these principles is achieved through a
number of DevOps practices that include continuous
delivery, frequent deployments, QA automation, validating
ideas as early as possible, and in-team collaboration.
Benefits of DevOps
Speed
	
	 Rapid Delivery
	 Reliability
Scale
Security
How microservices enable DevOps
The microservices approach also goes nicely with DevOps,
which accelerates the process of getting software from
development into production by breaking down barriers
between software development and IT operations groups.
In a DevOps environment, developers and operations
engineers work together seamlessly in an iterative manner
to produce higher-quality software faster.
Speed and Scalability
Rapid Delivery
Reliability
Security
11
Microservices, when used Effectively
Used effectively, microservice architectures allow us to
scale our application as the number of developers working
on our application increases. The key is to build
applications without creating a complex, unwieldy beast at
the macro level. That means keep tracking each time a new
service is added to your system or a new connection
between microservices is made.
It also means examining the complexity increase and
making sure it is warranted and well understood. Regularly
examining the entire application system is critical to keep
an interconnected set of microservices working effectively
and reliably.
Although not a panacea, the benefits of microservices are
clearly worth it for increasing numbers of modern software
organizations. By changing how software development
teams are structured, organizations can create teams
centered on specific business services and give them both
the responsibility and the authority to act as they see best.
This approach lets teams quickly move with the business as
it evolves in response to market demand without disrupting
central business activities.
DevOps model and practices
12
CONTAINERIZATION
Containerization involves bundling an application together
with all of its related configuration files, libraries and
dependencies required for it to run in an efficient and bug-
free way across different computing environments.
The most popular containerization ecosystems are Docker and
Kubernetes.
13
Containers versus Virtual Machines
Containers are an abstraction of the application layer
(meaning that each container simulates a different software
application). Though each container runs isolated
processes, multiple containers share a common Operating
System.
VMs are an abstraction of the hardware layer (meaning that
each VM simulates a physical machine that can run
software). VM technology can use one physical server to
run the equivalent of many servers (each of which is called
a VM). So, while multiple VMs run on one physical machine,
each VM has its own copy of an Operating System,
applications and their related files, libraries and
dependencies.
Containers and virtual machines have similar resource
isolation and allocation benefits, but function differently
because containers virtualize the operating system instead
of hardware. Containers are more portable and efficient.
14
DOCKER
Docker is an open platform for developing, shipping, and
running applications. Docker enables you to separate
your applications from your infrastructure so you can
deliver software quickly. With Docker, you can manage your
infrastructure in the same ways you manage your
applications. By taking advantage of Docker’s
methodologies for shipping, testing, and deploying code
quickly, you can significantly reduce the delay between
writing code and running it in production.
Docker Engine
Docker Engine  is a client-server application with these
major components:
• A server which is a type of long-running program
called a daemon process (the dockers command).
• A REST API which specifies interfaces that programs
can use to talk to the daemon and instruct it what to
do.
• A c o m m a n d l i n e i n t e r f a c e ( C L I ) c l i e n t
(the docker command)
15
Docker Architecture
Who is Docker for ?
Docker is a tool that is designed to benefit both developers
and system administrators, making it a part of many
DevOps (developers + operations) toolchains. For
developers, it means that they can focus on writing code
without worrying about the system that it will ultimately be
running on. It also allows them to get a head start by using
one of thousands of programs already designed to run in a
Docker container as a part of their application. For
operations staff, Docker gives flexibility and potentially
reduces the number of systems needed because of its small
footprint and lower overhead.
16
Docker Features
Although Docker provides lots of features, we are listing
some major features which are given below.
◦ Easy and Faster Configuration
◦ Increase productivity
◦ Application Isolation
◦ Swarm
◦ Routing Mesh
◦ Services
◦ Security Management
Swarm
It is a clustering and scheduling tool for Docker containers.
Swarm uses the Docker API as its front end, which helps us
to use various tools to control it. It also helps us to control a
cluster of Docker hosts as a single virtual host. It's a self-
organising group of engines that is used to enable
pluggable backends.
Routing Mesh
It routes the incoming requests for published ports on
available nodes to an active container. This feature enables
the connection even if there is no task is running on the
node. It enable port access across cluster… With Stateless
Load Balancing…
17
Services
Services is a list of tasks that lets us specify the state of the
container inside a cluster. Each task represents one
instance of a container that should be running and Swarm
schedules them across nodes.
Docker Alternatives
Although Docker provides lots of features, we are listing
1. Virtual Machine
2. Vagrant
3. Rancher
4. Wow
5. LXC Linux Container
6. Apache Mesos
“Services Deployment using Docker Swarm Deployment”
18
ORCHESTRATION
Orchestration is the automated configuration,
management, and coordination of computer systems,
applications, and services. Orchestration helps IT to more
easily manage complex tasks and workflows
Automation and orchestration are different, but related
concepts. Automation helps make your business more
efficient by reducing or replacing human interaction with IT
systems and instead using software to perform tasks in
order to reduce cost, complexity, and errors. 
IT orchestration also helps you to streamline and optimize
frequently occurring processes and workflows, which can
support a  DevOps approach  and help your team deploy
applications more quickly.
Container Orchestration
Container orchestration automates the deployment,
management, scaling, and networking of containers.
Enterprises that need to deploy and manage hundreds or
thousands of LinuxŽ containers and hosts can benefit from
container orchestration. 
Containers give your microservice-based apps an ideal
application deployment unit and self-contained execution
environment. They make it possible to run multiple parts of
an app independently in microservices, on the same
hardware, with much greater control over individual pieces
and life cycles.
19
Managing the lifecycle of containers with orchestration also
supports DevOps teams who integrate it into CI/CD
workflows. Along with application programming interfaces
(APIs) and DevOps teams, containerized microservices are
the foundation for cloud-native applications.
What is container orchestration used for?
Use container orchestration to automate and manage tasks
such as:
✦ Provisioning and deployment
✦ Configuration and scheduling 
✦ Resource allocation
✦ Container availability 
✦ Scaling or removing containers based on balancing
workloads across your infrastructure
✦ Load balancing and traffic routing 
✦ Monitoring container health
✦ Configuring applications based on the container in
which they will run
✦ Keeping interactions between containers secure
20
Container Orchestration Tools
Docker Swarm — Docker Swarm provides native clustering
functionality for Docker containers, which lets you turn a
group of Docker engines into a single, virtual Docker
engine.
Kubernetes  — Kubernetes is an orchestration system for
Docker containers. It handles scheduling and manages
workloads based on user-defined parameters.
Amazon ECS  — The Amazon EC2 Container Service (ECS)
supports Docker containers and lets you run applications on
a managed cluster of Amazon EC2 instances.
Azure Container Service  (ACS) — ACS lets you create a
cluster of virtual machines that act as container hosts along
with master machines that are used to manage your
application containers.
21
DOCKER SWARM MODE
Introduction
A Docker Swarm is a group of either physical or virtual
machines that are running the Docker application and that
have been configured to join together in a cluster. Once a
group of machines have been clustered together, you can
still run the Docker commands that you're used to, but they
will now be carried out by the machines in your cluster. The
activities of the cluster are controlled by a swarm manager,
and machines that have joined the cluster are referred to as
nodes.
Docker swarm is a container orchestration tool, meaning
that it allows the user to manage multiple containers
deployed across multiple host machines.
22
MICROSERVICES WITH
DOCKER
Challenges of Building a Microservice
Architecture
• Service tracking
• Rapid resource scaling
• Inefficient minimal resourcing
• Increased deployment complexity
Docker to the Rescue for Microservices
• Task isolation
• Support multiple coding languages
• Database separation
23
F U T U R E S C O P E W I T H
DOCKER DEPLOYMENT
An analysis of current trends
The DockerCon 2016 keynote speech by Docker’s CEO Ben
Golub provided many insights into the current level
adoption of this technology:
• Dockerised applications have grown about 3100 per
cent over the past two years to about 460,000 in
number.
• Over 4 billion containers have been shared among the
developer community. Analysts are touting 8 billion as
the number for 2017.
• There are nearly 125,000 Docker Meet up members
worldwide, which is nearly half of the population of
Iceland.
Docker has spurred the development of a number of
projects including CoreOS and Red Hat’s Project Atomic,
which are designed to be minimalist environments for
running containers.
24
25
ABOUT ME
Sunil Yadav
Software Engineer
Contact No. +91 9670809602
LinkedIn Profile - https://www.linkedin.com/in/sunil016/
GitHub Link - https://github.com/Ysunil016
HackerRank Profile https://www.hackerrank.com/atworksunil
FaceBook Profile https://www.facebook.com/sunil016/
26

Weitere ähnliche Inhalte

Was ist angesagt?

Citrix XenApp hosted shared desktop performance on Cisco UCS: Cisco VM-FEX vs...
Citrix XenApp hosted shared desktop performance on Cisco UCS: Cisco VM-FEX vs...Citrix XenApp hosted shared desktop performance on Cisco UCS: Cisco VM-FEX vs...
Citrix XenApp hosted shared desktop performance on Cisco UCS: Cisco VM-FEX vs...Principled Technologies
 
TransitioningToMicroServonDocker_MS
TransitioningToMicroServonDocker_MSTransitioningToMicroServonDocker_MS
TransitioningToMicroServonDocker_MSLana Kalashnyk
 
Docker EE 2.0 Choice, Security & Agility
Docker EE 2.0Choice, Security & AgilityDocker EE 2.0Choice, Security & Agility
Docker EE 2.0 Choice, Security & AgilityAshnikbiz
 
Cloud Ubuntu Open Stack Private Cloud
Cloud  Ubuntu Open Stack Private CloudCloud  Ubuntu Open Stack Private Cloud
Cloud Ubuntu Open Stack Private CloudThe World Bank
 
C2B2 vFabric Hyperic Kickstart
C2B2 vFabric Hyperic KickstartC2B2 vFabric Hyperic Kickstart
C2B2 vFabric Hyperic KickstartC2B2 Consulting
 
Make Kubernetes containers on Dell EMC PowerEdge R740xd servers easier to man...
Make Kubernetes containers on Dell EMC PowerEdge R740xd servers easier to man...Make Kubernetes containers on Dell EMC PowerEdge R740xd servers easier to man...
Make Kubernetes containers on Dell EMC PowerEdge R740xd servers easier to man...Principled Technologies
 
Enhance your Agility with DevOps
Enhance your Agility with DevOpsEnhance your Agility with DevOps
Enhance your Agility with DevOpsEdureka!
 
Virtualization for Cloud Environment
Virtualization for Cloud EnvironmentVirtualization for Cloud Environment
Virtualization for Cloud EnvironmentDr. Sunil Kr. Pandey
 
Mid term report
Mid term reportMid term report
Mid term reportlokesh039
 
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012Matt Tesauro
 
Cloud Deploying a Public Cloud on Ubuntu Open Stack
Cloud Deploying a Public Cloud on Ubuntu Open StackCloud Deploying a Public Cloud on Ubuntu Open Stack
Cloud Deploying a Public Cloud on Ubuntu Open StackThe World Bank
 
Azure DevOps Best Practices Webinar
Azure DevOps Best Practices WebinarAzure DevOps Best Practices Webinar
Azure DevOps Best Practices WebinarCambay Digital
 
Cloud Whitepaper - Telco sp Cloud Market - Challenges
Cloud Whitepaper - Telco sp Cloud Market - ChallengesCloud Whitepaper - Telco sp Cloud Market - Challenges
Cloud Whitepaper - Telco sp Cloud Market - ChallengesThe World Bank
 
Micro service Arthicetcure
Micro service Arthicetcure Micro service Arthicetcure
Micro service Arthicetcure Kian Paimani
 
Cloud Computing & Windows Azure
Cloud Computing & Windows AzureCloud Computing & Windows Azure
Cloud Computing & Windows Azureyeschandana
 
Driving Innovation in Healthcare with Containers and Docker
Driving Innovation in Healthcare with Containers and DockerDriving Innovation in Healthcare with Containers and Docker
Driving Innovation in Healthcare with Containers and DockerCitiusTech
 
Infrastructure Solution Day | Final
Infrastructure Solution Day | FinalInfrastructure Solution Day | Final
Infrastructure Solution Day | FinalMicrosoft Österreich
 
Cloud Computing Use Cases Whitepaper 3 0
Cloud Computing Use Cases Whitepaper 3 0Cloud Computing Use Cases Whitepaper 3 0
Cloud Computing Use Cases Whitepaper 3 0Jason Reed
 
Uni micro systemcenter2012_cs
Uni micro systemcenter2012_csUni micro systemcenter2012_cs
Uni micro systemcenter2012_csrj_vikki
 

Was ist angesagt? (20)

Citrix XenApp hosted shared desktop performance on Cisco UCS: Cisco VM-FEX vs...
Citrix XenApp hosted shared desktop performance on Cisco UCS: Cisco VM-FEX vs...Citrix XenApp hosted shared desktop performance on Cisco UCS: Cisco VM-FEX vs...
Citrix XenApp hosted shared desktop performance on Cisco UCS: Cisco VM-FEX vs...
 
TransitioningToMicroServonDocker_MS
TransitioningToMicroServonDocker_MSTransitioningToMicroServonDocker_MS
TransitioningToMicroServonDocker_MS
 
Docker EE 2.0 Choice, Security & Agility
Docker EE 2.0Choice, Security & AgilityDocker EE 2.0Choice, Security & Agility
Docker EE 2.0 Choice, Security & Agility
 
Cloud Ubuntu Open Stack Private Cloud
Cloud  Ubuntu Open Stack Private CloudCloud  Ubuntu Open Stack Private Cloud
Cloud Ubuntu Open Stack Private Cloud
 
C2B2 vFabric Hyperic Kickstart
C2B2 vFabric Hyperic KickstartC2B2 vFabric Hyperic Kickstart
C2B2 vFabric Hyperic Kickstart
 
Make Kubernetes containers on Dell EMC PowerEdge R740xd servers easier to man...
Make Kubernetes containers on Dell EMC PowerEdge R740xd servers easier to man...Make Kubernetes containers on Dell EMC PowerEdge R740xd servers easier to man...
Make Kubernetes containers on Dell EMC PowerEdge R740xd servers easier to man...
 
Enhance your Agility with DevOps
Enhance your Agility with DevOpsEnhance your Agility with DevOps
Enhance your Agility with DevOps
 
Virtualization for Cloud Environment
Virtualization for Cloud EnvironmentVirtualization for Cloud Environment
Virtualization for Cloud Environment
 
Mid term report
Mid term reportMid term report
Mid term report
 
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
 
Cloud Deploying a Public Cloud on Ubuntu Open Stack
Cloud Deploying a Public Cloud on Ubuntu Open StackCloud Deploying a Public Cloud on Ubuntu Open Stack
Cloud Deploying a Public Cloud on Ubuntu Open Stack
 
Rht cloud 129
Rht cloud 129Rht cloud 129
Rht cloud 129
 
Azure DevOps Best Practices Webinar
Azure DevOps Best Practices WebinarAzure DevOps Best Practices Webinar
Azure DevOps Best Practices Webinar
 
Cloud Whitepaper - Telco sp Cloud Market - Challenges
Cloud Whitepaper - Telco sp Cloud Market - ChallengesCloud Whitepaper - Telco sp Cloud Market - Challenges
Cloud Whitepaper - Telco sp Cloud Market - Challenges
 
Micro service Arthicetcure
Micro service Arthicetcure Micro service Arthicetcure
Micro service Arthicetcure
 
Cloud Computing & Windows Azure
Cloud Computing & Windows AzureCloud Computing & Windows Azure
Cloud Computing & Windows Azure
 
Driving Innovation in Healthcare with Containers and Docker
Driving Innovation in Healthcare with Containers and DockerDriving Innovation in Healthcare with Containers and Docker
Driving Innovation in Healthcare with Containers and Docker
 
Infrastructure Solution Day | Final
Infrastructure Solution Day | FinalInfrastructure Solution Day | Final
Infrastructure Solution Day | Final
 
Cloud Computing Use Cases Whitepaper 3 0
Cloud Computing Use Cases Whitepaper 3 0Cloud Computing Use Cases Whitepaper 3 0
Cloud Computing Use Cases Whitepaper 3 0
 
Uni micro systemcenter2012_cs
Uni micro systemcenter2012_csUni micro systemcenter2012_cs
Uni micro systemcenter2012_cs
 

Ähnlich wie Deploying Microservices over Docker Swarm

A Guide on What Are Microservices: Pros, Cons, Use Cases, and More
A Guide on What Are Microservices: Pros, Cons, Use Cases, and MoreA Guide on What Are Microservices: Pros, Cons, Use Cases, and More
A Guide on What Are Microservices: Pros, Cons, Use Cases, and MoreSimform
 
Diving Into Docker
Diving Into Docker Diving Into Docker
Diving Into Docker XebiaLabs
 
Cloud Infrastructure Modernisation Guide
Cloud Infrastructure Modernisation GuideCloud Infrastructure Modernisation Guide
Cloud Infrastructure Modernisation GuideMontel Intergalactic
 
Microservices: A Step Towards Modernizing Healthcare Applications
Microservices: A Step Towards Modernizing Healthcare ApplicationsMicroservices: A Step Towards Modernizing Healthcare Applications
Microservices: A Step Towards Modernizing Healthcare ApplicationsCitiusTech
 
Architecting for speed: How agile innovators accelerate growth through micros...
Architecting for speed: How agile innovators accelerate growth through micros...Architecting for speed: How agile innovators accelerate growth through micros...
Architecting for speed: How agile innovators accelerate growth through micros...Jesper NordstrĂśm
 
Architecting for speed - how agile innovators accelerate growth through micro...
Architecting for speed - how agile innovators accelerate growth through micro...Architecting for speed - how agile innovators accelerate growth through micro...
Architecting for speed - how agile innovators accelerate growth through micro...3gamma
 
Introduction to Dev Ops and Containerisation with Docker
Introduction to Dev Ops and Containerisation with DockerIntroduction to Dev Ops and Containerisation with Docker
Introduction to Dev Ops and Containerisation with DockerShakthi Weerasinghe
 
Chapter VI -CLOUD NATIVE AND EMERGENT TRENDS.pptx
Chapter VI -CLOUD NATIVE AND EMERGENT TRENDS.pptxChapter VI -CLOUD NATIVE AND EMERGENT TRENDS.pptx
Chapter VI -CLOUD NATIVE AND EMERGENT TRENDS.pptxJerianMacatuggal
 
Powering Microservices with Docker
Powering Microservices with DockerPowering Microservices with Docker
Powering Microservices with DockerCognizant
 
Cloud Native Architecture: Its Benefits and Key Components
Cloud Native Architecture: Its Benefits and Key ComponentsCloud Native Architecture: Its Benefits and Key Components
Cloud Native Architecture: Its Benefits and Key ComponentsAndrewHolland58
 
Benefits of Containers, Microservices and Containerized Microservices
Benefits of Containers, Microservices and Containerized MicroservicesBenefits of Containers, Microservices and Containerized Microservices
Benefits of Containers, Microservices and Containerized MicroservicesHTS Hosting
 
Think Small To Go Big - Introduction To Microservices
Think Small To Go Big - Introduction To MicroservicesThink Small To Go Big - Introduction To Microservices
Think Small To Go Big - Introduction To MicroservicesRyan Baxter
 
Container Shangri-La Attaining the Promise of Container Paradise
Container Shangri-La Attaining the Promise of Container ParadiseContainer Shangri-La Attaining the Promise of Container Paradise
Container Shangri-La Attaining the Promise of Container ParadiseXebiaLabs
 
Application Centric Microservices from Redhat Summit 2015
Application Centric Microservices from Redhat Summit 2015Application Centric Microservices from Redhat Summit 2015
Application Centric Microservices from Redhat Summit 2015Ken Owens
 
Microservices and docker
Microservices and dockerMicroservices and docker
Microservices and dockerAlex Ivy
 
Exploring Cloud Native Architecture: Its Benefits And Key Components
Exploring Cloud Native Architecture: Its Benefits And Key ComponentsExploring Cloud Native Architecture: Its Benefits And Key Components
Exploring Cloud Native Architecture: Its Benefits And Key ComponentsLucy Zeniffer
 
DevOps to DevSecOps Journey..
DevOps to DevSecOps Journey..DevOps to DevSecOps Journey..
DevOps to DevSecOps Journey..Siddharth Joshi
 
DevOps and BigData Analytics
DevOps and BigData Analytics DevOps and BigData Analytics
DevOps and BigData Analytics sbbabu
 
CNCF Introduction - Feb 2018
CNCF Introduction - Feb 2018CNCF Introduction - Feb 2018
CNCF Introduction - Feb 2018Krishna-Kumar
 
Slide DevSecOps Microservices
Slide DevSecOps Microservices Slide DevSecOps Microservices
Slide DevSecOps Microservices Hendri Karisma
 

Ähnlich wie Deploying Microservices over Docker Swarm (20)

A Guide on What Are Microservices: Pros, Cons, Use Cases, and More
A Guide on What Are Microservices: Pros, Cons, Use Cases, and MoreA Guide on What Are Microservices: Pros, Cons, Use Cases, and More
A Guide on What Are Microservices: Pros, Cons, Use Cases, and More
 
Diving Into Docker
Diving Into Docker Diving Into Docker
Diving Into Docker
 
Cloud Infrastructure Modernisation Guide
Cloud Infrastructure Modernisation GuideCloud Infrastructure Modernisation Guide
Cloud Infrastructure Modernisation Guide
 
Microservices: A Step Towards Modernizing Healthcare Applications
Microservices: A Step Towards Modernizing Healthcare ApplicationsMicroservices: A Step Towards Modernizing Healthcare Applications
Microservices: A Step Towards Modernizing Healthcare Applications
 
Architecting for speed: How agile innovators accelerate growth through micros...
Architecting for speed: How agile innovators accelerate growth through micros...Architecting for speed: How agile innovators accelerate growth through micros...
Architecting for speed: How agile innovators accelerate growth through micros...
 
Architecting for speed - how agile innovators accelerate growth through micro...
Architecting for speed - how agile innovators accelerate growth through micro...Architecting for speed - how agile innovators accelerate growth through micro...
Architecting for speed - how agile innovators accelerate growth through micro...
 
Introduction to Dev Ops and Containerisation with Docker
Introduction to Dev Ops and Containerisation with DockerIntroduction to Dev Ops and Containerisation with Docker
Introduction to Dev Ops and Containerisation with Docker
 
Chapter VI -CLOUD NATIVE AND EMERGENT TRENDS.pptx
Chapter VI -CLOUD NATIVE AND EMERGENT TRENDS.pptxChapter VI -CLOUD NATIVE AND EMERGENT TRENDS.pptx
Chapter VI -CLOUD NATIVE AND EMERGENT TRENDS.pptx
 
Powering Microservices with Docker
Powering Microservices with DockerPowering Microservices with Docker
Powering Microservices with Docker
 
Cloud Native Architecture: Its Benefits and Key Components
Cloud Native Architecture: Its Benefits and Key ComponentsCloud Native Architecture: Its Benefits and Key Components
Cloud Native Architecture: Its Benefits and Key Components
 
Benefits of Containers, Microservices and Containerized Microservices
Benefits of Containers, Microservices and Containerized MicroservicesBenefits of Containers, Microservices and Containerized Microservices
Benefits of Containers, Microservices and Containerized Microservices
 
Think Small To Go Big - Introduction To Microservices
Think Small To Go Big - Introduction To MicroservicesThink Small To Go Big - Introduction To Microservices
Think Small To Go Big - Introduction To Microservices
 
Container Shangri-La Attaining the Promise of Container Paradise
Container Shangri-La Attaining the Promise of Container ParadiseContainer Shangri-La Attaining the Promise of Container Paradise
Container Shangri-La Attaining the Promise of Container Paradise
 
Application Centric Microservices from Redhat Summit 2015
Application Centric Microservices from Redhat Summit 2015Application Centric Microservices from Redhat Summit 2015
Application Centric Microservices from Redhat Summit 2015
 
Microservices and docker
Microservices and dockerMicroservices and docker
Microservices and docker
 
Exploring Cloud Native Architecture: Its Benefits And Key Components
Exploring Cloud Native Architecture: Its Benefits And Key ComponentsExploring Cloud Native Architecture: Its Benefits And Key Components
Exploring Cloud Native Architecture: Its Benefits And Key Components
 
DevOps to DevSecOps Journey..
DevOps to DevSecOps Journey..DevOps to DevSecOps Journey..
DevOps to DevSecOps Journey..
 
DevOps and BigData Analytics
DevOps and BigData Analytics DevOps and BigData Analytics
DevOps and BigData Analytics
 
CNCF Introduction - Feb 2018
CNCF Introduction - Feb 2018CNCF Introduction - Feb 2018
CNCF Introduction - Feb 2018
 
Slide DevSecOps Microservices
Slide DevSecOps Microservices Slide DevSecOps Microservices
Slide DevSecOps Microservices
 

Mehr von Sunil Yadav

Tree Leetcode - Interview Questions - Easy Collections
Tree Leetcode - Interview Questions - Easy CollectionsTree Leetcode - Interview Questions - Easy Collections
Tree Leetcode - Interview Questions - Easy CollectionsSunil Yadav
 
Linked List Leetcode - Easy Collections - Interview Questions Java
Linked List Leetcode - Easy Collections - Interview Questions JavaLinked List Leetcode - Easy Collections - Interview Questions Java
Linked List Leetcode - Easy Collections - Interview Questions JavaSunil Yadav
 
Leet Code May Coding Challenge - DataStructure and Algorithm Problems
Leet Code May Coding Challenge - DataStructure and Algorithm ProblemsLeet Code May Coding Challenge - DataStructure and Algorithm Problems
Leet Code May Coding Challenge - DataStructure and Algorithm ProblemsSunil Yadav
 
Bada Business, Dr. Vivek Bindra . Motivational Speaker (31 May)
Bada Business, Dr. Vivek Bindra . Motivational Speaker (31 May)Bada Business, Dr. Vivek Bindra . Motivational Speaker (31 May)
Bada Business, Dr. Vivek Bindra . Motivational Speaker (31 May)Sunil Yadav
 
Golang, Future of Programming Language.
Golang, Future of Programming Language.Golang, Future of Programming Language.
Golang, Future of Programming Language.Sunil Yadav
 
React Js Simplified
React Js SimplifiedReact Js Simplified
React Js SimplifiedSunil Yadav
 
LeetCode April Coding Challenge
LeetCode April Coding ChallengeLeetCode April Coding Challenge
LeetCode April Coding ChallengeSunil Yadav
 

Mehr von Sunil Yadav (7)

Tree Leetcode - Interview Questions - Easy Collections
Tree Leetcode - Interview Questions - Easy CollectionsTree Leetcode - Interview Questions - Easy Collections
Tree Leetcode - Interview Questions - Easy Collections
 
Linked List Leetcode - Easy Collections - Interview Questions Java
Linked List Leetcode - Easy Collections - Interview Questions JavaLinked List Leetcode - Easy Collections - Interview Questions Java
Linked List Leetcode - Easy Collections - Interview Questions Java
 
Leet Code May Coding Challenge - DataStructure and Algorithm Problems
Leet Code May Coding Challenge - DataStructure and Algorithm ProblemsLeet Code May Coding Challenge - DataStructure and Algorithm Problems
Leet Code May Coding Challenge - DataStructure and Algorithm Problems
 
Bada Business, Dr. Vivek Bindra . Motivational Speaker (31 May)
Bada Business, Dr. Vivek Bindra . Motivational Speaker (31 May)Bada Business, Dr. Vivek Bindra . Motivational Speaker (31 May)
Bada Business, Dr. Vivek Bindra . Motivational Speaker (31 May)
 
Golang, Future of Programming Language.
Golang, Future of Programming Language.Golang, Future of Programming Language.
Golang, Future of Programming Language.
 
React Js Simplified
React Js SimplifiedReact Js Simplified
React Js Simplified
 
LeetCode April Coding Challenge
LeetCode April Coding ChallengeLeetCode April Coding Challenge
LeetCode April Coding Challenge
 

KĂźrzlich hochgeladen

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

KĂźrzlich hochgeladen (20)

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 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...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Deploying Microservices over Docker Swarm

  • 2. Sunil C O N T A I N E R I Z I N G T H E MICROSERVICEARCHITECTURE DOCKER & SWARM ORCHESTRATION 2
  • 3. TABLE OF CONTENT Table of content 3..................................................... Microservice architecture 6..................................... What is Microservices Monolithic Architecture Microservices Architecture Key Benets of Microservices Drawbacks of Microservices Devops 9.................................................................... How DevOps Works DevOps principles Benets of DevOps How microservices enable DevOps Microservices, when used Effectively DevOps model and practices Containerization 13................................................... Containers versusVirtual Machines Docker 15................................................................... Docker Engine Docker Architecture Who is Docker for ? Docker Features Docker Alternatives 3
  • 4. Orchestration 19....................................................... Container Orchestration What is container orchestration used for? Container Orchestration Tools Docker Swarm mode 22........................................... Introduction Microservices with docker 23.................................. Challenges of Building a Microservice Architecture Docker to the Rescue for Microservices Future scope with docker deployment 24............. An analysis of current trends About Me 26.............................................................. 4
  • 6. M I C R O S E R V I C E ARCHITECTURE What is Microservices Microservices  are a software development technique —a variant of the service-oriented  architecture  (SOA) structural style— that arranges an application as a collection of loosely coupled services. In a microservices architecture, services are fine-grained and the protocols are lightweight. Microservices is an architectural style that structures an application as a collection of services that are • Highly maintainable and testable • Loosely coupled • Independently deployable • Organized around business capabilities • Owned by a small team The microservice architecture enables the rapid, frequent and reliable delivery of large, complex applications. It also enables an organization to evolve its technology stack. 6
  • 8. Key Benefits of Microservices The benefits that organizations realize from deploying microservices include: 1. Improved scalability 2. Better fault isolation 3. Optimized scaling decisions 4. Localized complexity 5. Increased business agility 6. Increased developer productivity 7. Simplified debugging and maintenance 8. Future-proofed applications 9. Smaller and more agile development teams Drawbacks of Microservices The Microservice architectures do carry their own costs. 1. Microservice architectures can be complex.  2. A microservices approach requires careful planning 3. Proper sizing of microservices is critical, and hard to calculate 4. You may have little control over third-party microservices 5. Downstream dependencies are difficult to track. 8
  • 9. DEVOPS DevOps is a set of software development practices that combines software development (Dev) and information technology operations (Ops) to shorten the systems development life cycle while delivering features, fixes, and updates frequently in close alignment with business objectives. How DevOps Works Under a DevOps model, development and operations teams are no longer “siloed.” Sometimes, these two teams are merged into a single team where the engineers work across the entire application lifecycle, from development and test 9
  • 10. to deployment to operations, and develop a range of skills not limited to a single function. In some DevOps models, quality assurance and security teams may also become more tightly integrated with development and operations and throughout the application lifecycle. When security is the focus of everyone on a DevOps team, this is sometimes referred to as DevSecOps. These teams use practices to automate processes that historically have been manual and slow. They use a technology stack and tooling which help them operate and evolve applications quickly and reliably. These tools also help engineers independently accomplish tasks (for example, deploying code or provisioning infrastructure) that normally would have required help from other teams, and this further increases a team’s velocity. DevOps principles Principles of DevOps are automation, continuous delivery, and fast reaction to feedback. More detailed explanation of DevOps pillars in the CAMS acronym: Culture represented by human communication, technical processes, and tools Automation of processes Measurement of KeyPrincipal Indicators Sharing feedback, best practices, and knowledge 10
  • 11. Adherence to these principles is achieved through a number of DevOps practices that include continuous delivery, frequent deployments, QA automation, validating ideas as early as possible, and in-team collaboration. Benefits of DevOps Speed Rapid Delivery Reliability Scale Security How microservices enable DevOps The microservices approach also goes nicely with DevOps, which accelerates the process of getting software from development into production by breaking down barriers between software development and IT operations groups. In a DevOps environment, developers and operations engineers work together seamlessly in an iterative manner to produce higher-quality software faster. Speed and Scalability Rapid Delivery Reliability Security 11
  • 12. Microservices, when used Effectively Used effectively, microservice architectures allow us to scale our application as the number of developers working on our application increases. The key is to build applications without creating a complex, unwieldy beast at the macro level. That means keep tracking each time a new service is added to your system or a new connection between microservices is made. It also means examining the complexity increase and making sure it is warranted and well understood. Regularly examining the entire application system is critical to keep an interconnected set of microservices working effectively and reliably. Although not a panacea, the benefits of microservices are clearly worth it for increasing numbers of modern software organizations. By changing how software development teams are structured, organizations can create teams centered on specific business services and give them both the responsibility and the authority to act as they see best. This approach lets teams quickly move with the business as it evolves in response to market demand without disrupting central business activities. DevOps model and practices 12
  • 13. CONTAINERIZATION Containerization involves bundling an application together with all of its related configuration files, libraries and dependencies required for it to run in an efficient and bug- free way across different computing environments. The most popular containerization ecosystems are Docker and Kubernetes. 13
  • 14. Containers versus Virtual Machines Containers are an abstraction of the application layer (meaning that each container simulates a different software application). Though each container runs isolated processes, multiple containers share a common Operating System. VMs are an abstraction of the hardware layer (meaning that each VM simulates a physical machine that can run software). VM technology can use one physical server to run the equivalent of many servers (each of which is called a VM). So, while multiple VMs run on one physical machine, each VM has its own copy of an Operating System, applications and their related files, libraries and dependencies. Containers and virtual machines have similar resource isolation and allocation benefits, but function differently because containers virtualize the operating system instead of hardware. Containers are more portable and efficient. 14
  • 15. DOCKER Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production. Docker Engine Docker Engine  is a client-server application with these major components: • A server which is a type of long-running program called a daemon process (the dockers command). • A REST API which specifies interfaces that programs can use to talk to the daemon and instruct it what to do. • A c o m m a n d l i n e i n t e r f a c e ( C L I ) c l i e n t (the docker command) 15
  • 16. Docker Architecture Who is Docker for ? Docker is a tool that is designed to benefit both developers and system administrators, making it a part of many DevOps (developers + operations) toolchains. For developers, it means that they can focus on writing code without worrying about the system that it will ultimately be running on. It also allows them to get a head start by using one of thousands of programs already designed to run in a Docker container as a part of their application. For operations staff, Docker gives flexibility and potentially reduces the number of systems needed because of its small footprint and lower overhead. 16
  • 17. Docker Features Although Docker provides lots of features, we are listing some major features which are given below. ◦ Easy and Faster Configuration ◦ Increase productivity ◦ Application Isolation ◦ Swarm ◦ Routing Mesh ◦ Services ◦ Security Management Swarm It is a clustering and scheduling tool for Docker containers. Swarm uses the Docker API as its front end, which helps us to use various tools to control it. It also helps us to control a cluster of Docker hosts as a single virtual host. It's a self- organising group of engines that is used to enable pluggable backends. Routing Mesh It routes the incoming requests for published ports on available nodes to an active container. This feature enables the connection even if there is no task is running on the node. It enable port access across cluster… With Stateless Load Balancing… 17
  • 18. Services Services is a list of tasks that lets us specify the state of the container inside a cluster. Each task represents one instance of a container that should be running and Swarm schedules them across nodes. Docker Alternatives Although Docker provides lots of features, we are listing 1. Virtual Machine 2. Vagrant 3. Rancher 4. Wow 5. LXC Linux Container 6. Apache Mesos “Services Deployment using Docker Swarm Deployment” 18
  • 19. ORCHESTRATION Orchestration is the automated configuration, management, and coordination of computer systems, applications, and services. Orchestration helps IT to more easily manage complex tasks and workflows Automation and orchestration are different, but related concepts. Automation helps make your business more efficient by reducing or replacing human interaction with IT systems and instead using software to perform tasks in order to reduce cost, complexity, and errors.  IT orchestration also helps you to streamline and optimize frequently occurring processes and workflows, which can support a  DevOps approach  and help your team deploy applications more quickly. Container Orchestration Container orchestration automates the deployment, management, scaling, and networking of containers. Enterprises that need to deploy and manage hundreds or thousands of LinuxÂŽ containers and hosts can benefit from container orchestration.  Containers give your microservice-based apps an ideal application deployment unit and self-contained execution environment. They make it possible to run multiple parts of an app independently in microservices, on the same hardware, with much greater control over individual pieces and life cycles. 19
  • 20. Managing the lifecycle of containers with orchestration also supports DevOps teams who integrate it into CI/CD workflows. Along with application programming interfaces (APIs) and DevOps teams, containerized microservices are the foundation for cloud-native applications. What is container orchestration used for? Use container orchestration to automate and manage tasks such as: ✦ Provisioning and deployment ✦ Configuration and scheduling  ✦ Resource allocation ✦ Container availability  ✦ Scaling or removing containers based on balancing workloads across your infrastructure ✦ Load balancing and traffic routing  ✦ Monitoring container health ✦ Configuring applications based on the container in which they will run ✦ Keeping interactions between containers secure 20
  • 21. Container Orchestration Tools Docker Swarm — Docker Swarm provides native clustering functionality for Docker containers, which lets you turn a group of Docker engines into a single, virtual Docker engine. Kubernetes  — Kubernetes is an orchestration system for Docker containers. It handles scheduling and manages workloads based on user-defined parameters. Amazon ECS  — The Amazon EC2 Container Service (ECS) supports Docker containers and lets you run applications on a managed cluster of Amazon EC2 instances. Azure Container Service  (ACS) — ACS lets you create a cluster of virtual machines that act as container hosts along with master machines that are used to manage your application containers. 21
  • 22. DOCKER SWARM MODE Introduction A Docker Swarm is a group of either physical or virtual machines that are running the Docker application and that have been configured to join together in a cluster. Once a group of machines have been clustered together, you can still run the Docker commands that you're used to, but they will now be carried out by the machines in your cluster. The activities of the cluster are controlled by a swarm manager, and machines that have joined the cluster are referred to as nodes. Docker swarm is a container orchestration tool, meaning that it allows the user to manage multiple containers deployed across multiple host machines. 22
  • 23. MICROSERVICES WITH DOCKER Challenges of Building a Microservice Architecture • Service tracking • Rapid resource scaling • Inefficient minimal resourcing • Increased deployment complexity Docker to the Rescue for Microservices • Task isolation • Support multiple coding languages • Database separation 23
  • 24. F U T U R E S C O P E W I T H DOCKER DEPLOYMENT An analysis of current trends The DockerCon 2016 keynote speech by Docker’s CEO Ben Golub provided many insights into the current level adoption of this technology: • Dockerised applications have grown about 3100 per cent over the past two years to about 460,000 in number. • Over 4 billion containers have been shared among the developer community. Analysts are touting 8 billion as the number for 2017. • There are nearly 125,000 Docker Meet up members worldwide, which is nearly half of the population of Iceland. Docker has spurred the development of a number of projects including CoreOS and Red Hat’s Project Atomic, which are designed to be minimalist environments for running containers. 24
  • 25. 25
  • 26. ABOUT ME Sunil Yadav Software Engineer Contact No. +91 9670809602 LinkedIn Profile - https://www.linkedin.com/in/sunil016/ GitHub Link - https://github.com/Ysunil016 HackerRank Profile https://www.hackerrank.com/atworksunil FaceBook Profile https://www.facebook.com/sunil016/ 26