SlideShare a Scribd company logo
Software-Deployments ohne graue Haare
Continuous Delivery
24. Juni 2013 – Corsin Decurtins
2 20deployments
per year
deployments
per day
Netcetera | 3
Some numbers…
On the left
Traditional application from something like a bank, an insurance company, a
government agency, a transport authority … you name it.
On the right
One of those new fancy social network, Web 2.0-ish application.
Think Facebook, Google Mail, Flickr, Twitter, …
Both are serious applications with serious business value and mission-critical IT
systems.
Netcetera | 4
Some numbers…
Both applications need a high up-time.
Deployments to the production environment are risky.
Complex deployments with a lot of dependencies.
Both companies try to reduce the risk of deployments.
Deployments are painful and stressful.
Netcetera | 5
Two completely different approaches
"Banks" try to reduce the risk and effort for deployments by reducing the number of
deployments.
The "Web 2.0" side tries to reduce the risk of deployments by making much, much
smaller deployments … but a lot of them.
Netcetera | 6
If it hurts,
do it often.
Netcetera | 7
Our goals
Improve Quality
Fewer errors, less (unexpected) down-time.
Standardization
Different applications should deploy in a similar way.
Make it easier for the operations and the development teams.
Faster Deployments
Less downtime, smaller need for off-hour deployments.
More Deployments
Faster time-to-market for features and bug fixes.
Less Stress
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 9
Software Delivery Pipeline
The Software Delivery Pipeline is the combined set of processes, procedures and
tools that you use to bring code from the development environment into
production.
Of course you would make the pipeline even wider by including requirements
engineering etc. but for the context of this talk, we will start with code.
Netcetera | 10
Software Delivery Pipeline
Builds Propagate through the Pipeline
Successful completion of a step triggers the next steps.
Errors interrupt the Pipeline
In case of an error, the pipeline processing is interrupted.
Expensive steps are only done if the previous steps worked
For example (manual) User Testing is only done on builds that passed the
automated tests.
Some Pipeline steps might require manual triggering
Deployment to uat or prod is probably still triggered manually
Netcetera | 11
Software Delivery Pipeline
A few things that you should notice right here:
Everybody has a Software Delivery Pipeline.
You might not have thought about it yet, it might be automated or manual, very
simple or complex, but you have a pipeline.
Whether you want it or not, whether you manage it or not.
Your pipeline might look differently.
Depends on the project, the customer, the business domain, the degree of
maturity, …
Netcetera | 12
Continuous Delivery
Deliver software changes continuously and in a fully-automated way from the
developer to the production environment.
Very small increments
Automation
Fully automated QA
Continuously
Disruption-free deployments
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 14
Source Code Management (SCM)
CVS
and many more
Filesystem
Netcetera | 15
Source Code Management (SCM)
We are currently moving from Subversion to Git
Git has interesting properties related to Continuous Delivery
Potentially different software delivery pipelines per branch
Feature branches
build, run unit tests, deploy to test, run integration tests, …
but no deployment to QA and prod
Master branch
full software delivery pipeline
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 17
Artifact Repository
Filesystem
and many more
Netcetera | 18
Artifact Repository
Important for the reproducability of builds and releases
We use Nexus
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 20
Build Server
and many more
Netcetera | 21
Build Server
We use Jenkins (with some plugins)
Continuous Delivery requires a lot of build server power
We currently have more than 400 build jobs on our main Jenkins server
1 main server and 6 slaves
Feature builds are yet to come
We (normally) build at most once per hour
Expensive build jobs (UI tests, performance tests) normally run only once per day
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 23
Issue Management
and many more
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 25
Metrics / Monitoring
and many more
Infostore
Netcetera | 26
Metrics
Continuous collection of metrics about the code, deployments, performance
numbers,…
We use SonarQube for code analysis
SonarQube rocks!
Summary data from Sonar as well as other metrics are imported into Infostore
Infostore is our company database
Includes information on dependencies
Hopefully soon as continuously measure performance metrics
Continuous Delivery
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 29
Testing
and many more
Netcetera | 30
Testing
Fully automated and continuous testing is crucial
Testing on very different levels and in different places in the software delivery pipeline
Unit testing, integration testing, smoke tests, performance tests, load tests, UI tests, …
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 32
Deployment
Installation of a software release on a target environment
Replacement of existing software releases
Data migration
System reconfiguration
Netcetera | 33
Automation of the Deployment Process
$ deploy <application> <version> <environment>
Deployment was successful
$ deploy <application> <version> <environment>
Deployment failed, rolled back to old version
Netcetera | 34
Deployment
Scripts
glu
and many more
Netcetera | 35
Deployment Tools (1/2)
We use Puppet for the deployment of infrastructure components
Application servers, web servers, …
Not suited for the application deployments that we do
Security (push vs. pull)
Lack of control over the deployment time
For application deployment, we currently use scripts and Rundeck as well as Flyway
for database migrations
KISS
We have looked at other tools.
Netcetera | 36
Deployment Tools (2/2)
The kind of deployment tool that you need, depends a bit on your needs.
Scripts/Rundeck: very low level, but simple and effective
LiveRebel: great for disruption-free deployments, but expensive if you do not need this
feature
glu (and similar tools): great if you need to deploy an application on a farm of servers
(and monitor them)
Puppet/Chef: great if you do not (have to) care about deployment times
Netcetera | 37
Error Handling and Rollbacks
Ability to roll back at any time
Back up the preexisting state of the system
Try to make the deployment non-destructive
Detecting errors
Deployment process has to be able to detect errors
Automated Rollbacks
Very desirable
But also very complex
Has to be tested (continuously)
Netcetera | 38
Manual Rollback
It's just a workaround, but often a viable option
Probability of failing deployments is relatively small
We are testing the deployment continuously after all
Automated deployment process provides operations people with the necessary tools
and artifacts to roll back easily
Backups
Non-destructive deployments
Netcetera | 39
Disruption-Free
Deployments
Netcetera | 40
Disruption-Free Deployments
If you make very frequent deployments, a downtime is not acceptable anymore.
Different tools, technologies and architectures for doing disruption-free deployments.
Netcetera | 41http://martinfowler.com/bliki/BlueGreenDeployment.html
Blue/Green Deployments
Two production environments; blue and green.
Green is running as the current production system.
Deploy to blue, test and verify.
Switch from green to blue.
Very elegant solution.
State (database, session) is an issue.
Netcetera | 42
Netcetera | 43
LiveRebel
Product from ZeroTurnaround
Based on the JRebel technology
Replace running code without the need for restarting
Very cool technology
Commercial product, but worth every penny (if you ask me)
Far too expensive, if you do not really need disruption-free deployments
Netcetera | 44
Tomcat Parallel
Deployments
Netcetera | 45http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment
Tomcat Parallel Deployments
Tomcat 7 Parallel Deployments
Different version of a web application can be deployed in parallel
Tomcat routes requests to the different versions:
If no session information is present in the request, use the latest version.
If session information is present in the request, check the session manager of each
version for a matching session and if one is found, use that version.
If session information is present in the request but no matching session can be
found, use the latest version.
Netcetera | 46
Data Migration
Data migration is a tricky thing
Slow
Complex
Error-prone
Stop-the-World
Automation and continuous testing helps
More frequent and therefore smaller deployments help
Netcetera | 47
Data Migration Patterns
On-the-fly migration
Application can deal with multiple versions of the database
Data migration is done on-the-fly (batch job or touch-and-go)
Read-Only availability
Database is read-only as long as the migration is on-going
Storage Layer abstraction
Encapsulation of the storage layer
NoSQL storage layer
Less stringent requirements on schema compliance
Netcetera | 48
Deployment
Testing
Netcetera | 49
Deployment Testing
Deployments are tested continuously
Continuous Testing environment
Continuously, triggered automatically
Pre-Production environment
Regularly, triggered manually
"Same" configuration as the production environment
"Same" state as the production environment
Netcetera | 50
Health-Check Pages
Simple page/resource in the application
Reports the current health status of an application
Basically:
I'm fine, thanks. Got everything that I need.
Not doing very well, missing some dependencies. Trying my best.
I'm giving up. Some crucial dependencies missing. Please help.
<no answer at all>
Can be used for monitoring purposes, but also for deployment smoke tests.
Continuous Delivery
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 53
How far do you want to go?
How far can you go?
Is the effort worth it?
Is the customer ready?
Is the operations team ready?
Mobile and client applications
Technical limitations
Build and test infrastructure
Production infrastructure
Netcetera | 54
A way towards Continuous Delivery
It's a maturity process
It takes time to get there
Address what is hurting most
Automate further and further
Run continuously
Netcetera | 55
Our Experiences
Increase of quality
Lowering of costs
Developers
Operations
Customers
Reduction of stress
You can do a lot without asking for permission
Netcetera | 56
Continuous Delivery
Software Delivery Pipeline Automation
Continuation of Continuous Integration
Continuous…
… Builds, Integration, Testing
… Deployment, Migration
Deployment Testing
Smaller and faster deployments
Reduction of Deployment Risks
Quality Improvement
Faster Deployments
Down-Time minimalization
Shorter time-to-production
Less stressful deployments
Potential for more frequent deployments
Netcetera | 57
> deploy "Continuous Delivery" audience
deployment of Continuous Delivery
was started by user corsin
Continuous Delivery was successfully deployed
to environment audience
log file has been stored to:
http://www.slideshare.net/netceteragroup/
>
prod
dev
dev
test-int test-uat
Metrics
SCM Repo
build
unit testing
check-in deploy deploy deploy
integration
testing
performance
testing
user
acceptance
security
review
qa
CSO
ops
Netcetera | 59
Further Reading
Continuous Delivery
Jez Humble, David Farley
Literally the book on "Continuous Delivery".
Netcetera | 60
Further "Reading"
Continuous Delivery (Talk by Jez Humble, DevOps Day 2012)
http://www.infoq.com/presentations/Continuous-Delivery
Interview with Martin Fowler and Jez Humble on Continuous Delivery
http://www.infoq.com/interviews/jez-humble-martin-fowler-cd
Continuous Delivery (Blog by Jez Humble)
http://continuousdelivery.com/
Netcetera | 61
corsin.decurtins@netcetera.com
+41 44 247 70 70
Corsin Decurtins
Contact
@corsin

More Related Content

PDF
Dev ops and safety critical systems
Len Bass
 
PDF
Deployability
Len Bass
 
PPTX
Road to DevOps ROI
Cloudmunch
 
PDF
My first deployment pipeline
Len Bass
 
PPTX
Ship code like a keptn
Rob Jahn
 
PPTX
Scaling Enterprise DevOps with CloudBees
Deborah Schalm
 
PDF
Introduction to dev ops
Len Bass
 
PDF
Diving Deeper into DevOps Deployments
Jules Pierre-Louis
 
Dev ops and safety critical systems
Len Bass
 
Deployability
Len Bass
 
Road to DevOps ROI
Cloudmunch
 
My first deployment pipeline
Len Bass
 
Ship code like a keptn
Rob Jahn
 
Scaling Enterprise DevOps with CloudBees
Deborah Schalm
 
Introduction to dev ops
Len Bass
 
Diving Deeper into DevOps Deployments
Jules Pierre-Louis
 

What's hot (20)

PDF
Magenic-White-Paper-Continuous-Inegration-for-QA-Teams
Aaron Humerickhouse
 
PDF
Packaging tool options
Len Bass
 
PDF
Securing deployment pipeline
Len Bass
 
PDF
DevOps Workshop - Addressing Quality Challenges of Highly Complex and Integra...
Andrew Williams
 
PDF
The Continuous delivery Value @ codemotion 2014
David Funaro
 
PDF
Continuous delivery @wcap 5-09-2013
David Funaro
 
PDF
Cloud continuous integration- A distributed approach using distinct services
André Agostinho
 
PDF
Experience in teaching devops
Len Bass
 
PPTX
10 Reasons Why You Should Consider Google App Engine (GAE) for Your Next Project
Abeer R
 
PPTX
Webinar: A Roadmap for DevOps Success
Jules Pierre-Louis
 
PPTX
Starting and Scaling DevOps
Jules Pierre-Louis
 
PPTX
Adopting DevOps @ Scale: Lessons learned at Hertz, Kaiser Permanente and lBM
Jules Pierre-Louis
 
PDF
Model-driven Distributed Software Deployment
Sander van der Burg
 
PDF
DevOps Explained
Richard Seroter
 
PPTX
Devops phase-1
G R VISHAL
 
PPT
DevOps / Agile Tools Seminar 2013
Ethan Ram
 
PDF
Devops syllabus
Len Bass
 
PPTX
Challenges and best practices of database continuous delivery
DBmaestro - Database DevOps
 
PPTX
A Crash Course in Building Site Reliability
Acquia
 
PDF
Agile Strategies for Traditional Software Development Teams
TechWell
 
Magenic-White-Paper-Continuous-Inegration-for-QA-Teams
Aaron Humerickhouse
 
Packaging tool options
Len Bass
 
Securing deployment pipeline
Len Bass
 
DevOps Workshop - Addressing Quality Challenges of Highly Complex and Integra...
Andrew Williams
 
The Continuous delivery Value @ codemotion 2014
David Funaro
 
Continuous delivery @wcap 5-09-2013
David Funaro
 
Cloud continuous integration- A distributed approach using distinct services
André Agostinho
 
Experience in teaching devops
Len Bass
 
10 Reasons Why You Should Consider Google App Engine (GAE) for Your Next Project
Abeer R
 
Webinar: A Roadmap for DevOps Success
Jules Pierre-Louis
 
Starting and Scaling DevOps
Jules Pierre-Louis
 
Adopting DevOps @ Scale: Lessons learned at Hertz, Kaiser Permanente and lBM
Jules Pierre-Louis
 
Model-driven Distributed Software Deployment
Sander van der Burg
 
DevOps Explained
Richard Seroter
 
Devops phase-1
G R VISHAL
 
DevOps / Agile Tools Seminar 2013
Ethan Ram
 
Devops syllabus
Len Bass
 
Challenges and best practices of database continuous delivery
DBmaestro - Database DevOps
 
A Crash Course in Building Site Reliability
Acquia
 
Agile Strategies for Traditional Software Development Teams
TechWell
 
Ad

Similar to Continuous Delivery (20)

PPTX
DevOps explained
Jérôme Kehrli
 
PDF
Continuous Delivery (Internet-Briefing 2012-04-03)
Netcetera
 
PPTX
How Azure DevOps can boost your organization's productivity
Ivan Porta
 
PPTX
SDLC & DevOps Transformation with Agile
Abdel Moneim Emad
 
PPTX
How to go from waterfall app dev to secure agile development in 2 weeks
Ulf Mattsson
 
PDF
MACHINE LEARNING AUTOMATIONS PIPELINE WITH CI/CD
IRJET Journal
 
PPTX
Utilisation de la plateforme virtuelle QEMU/SystemC pour l'IoT
Pôle Systematic Paris-Region
 
PPTX
Making software development processes to work for you
Ambientia
 
PPTX
Data Engineer's Lunch #68: DevOps Fundamentals
Anant Corporation
 
PDF
Efficient platform engineering with Microk8s & gopaddle.pdf
Vinothini Raju
 
PPTX
InfrastructureDevOps.pptx it is most sui
pmishra37
 
PPTX
Technology insights: Decision Science Platform
Decision Science Community
 
PDF
Introduction To Development And Operations
teekhesawaal
 
PPTX
Advanced Software Engineering 800 Slides.pptx
officeassistantpwn
 
PDF
Dockerization (Replacement of VMs)
IRJET Journal
 
PDF
Api gitlab: configurazione dei progetti as a service
Emerasoft, solutions to collaborate
 
PDF
Confoo-Montreal-2016: Controlling Your Environments using Infrastructure as Code
Steve Mercier
 
PDF
Introduction to DevOps
Ravindu Fernando
 
PDF
Continuous Deployment To The Cloud With Spring Cloud Pipelines @WarsawCloudNa...
Marcin Grzejszczak
 
PPT
IBM Bluemix Openwhisk
Sonia Baratas Alves
 
DevOps explained
Jérôme Kehrli
 
Continuous Delivery (Internet-Briefing 2012-04-03)
Netcetera
 
How Azure DevOps can boost your organization's productivity
Ivan Porta
 
SDLC & DevOps Transformation with Agile
Abdel Moneim Emad
 
How to go from waterfall app dev to secure agile development in 2 weeks
Ulf Mattsson
 
MACHINE LEARNING AUTOMATIONS PIPELINE WITH CI/CD
IRJET Journal
 
Utilisation de la plateforme virtuelle QEMU/SystemC pour l'IoT
Pôle Systematic Paris-Region
 
Making software development processes to work for you
Ambientia
 
Data Engineer's Lunch #68: DevOps Fundamentals
Anant Corporation
 
Efficient platform engineering with Microk8s & gopaddle.pdf
Vinothini Raju
 
InfrastructureDevOps.pptx it is most sui
pmishra37
 
Technology insights: Decision Science Platform
Decision Science Community
 
Introduction To Development And Operations
teekhesawaal
 
Advanced Software Engineering 800 Slides.pptx
officeassistantpwn
 
Dockerization (Replacement of VMs)
IRJET Journal
 
Api gitlab: configurazione dei progetti as a service
Emerasoft, solutions to collaborate
 
Confoo-Montreal-2016: Controlling Your Environments using Infrastructure as Code
Steve Mercier
 
Introduction to DevOps
Ravindu Fernando
 
Continuous Deployment To The Cloud With Spring Cloud Pipelines @WarsawCloudNa...
Marcin Grzejszczak
 
IBM Bluemix Openwhisk
Sonia Baratas Alves
 
Ad

More from Netcetera (20)

PDF
Payment trend scouting - Kurt Schmid, Netcetera
Netcetera
 
PDF
Boost your approved transaction volume - Ana Vuksanovikj Vaneska, Netcetera
Netcetera
 
PDF
Increase conversion, convenience and security in e-commerce checkouts - Silke...
Netcetera
 
PDF
3-D Secure 2.0 - Stephan Rüdisüli, Netcetera & Patrick Juffern, INFORM
Netcetera
 
PDF
Digital Payment in 2020 - Kurt Schmid, Netcetera
Netcetera
 
PDF
AI First. Erfolgsfaktoren für künstliche Intelligenz im Unternehmen
Netcetera
 
PPTX
Augmenting Maintenance
Netcetera
 
PDF
Front-end up front
Netcetera
 
PDF
The future of Prototpying
Netcetera
 
PDF
EMV Secure Remote Commerce (SRC)
Netcetera
 
PPTX
Online shopping technology in the fast lane?
Netcetera
 
PDF
Merchant tokenization and EMV® Secure Remote Commerce
Netcetera
 
PDF
Seamless 3-D Secure e-commerce experience
Netcetera
 
PPTX
Augmenting Health Care
Netcetera
 
PDF
Driving transactional growth with 3-D Secure
Netcetera
 
PDF
Digital Payment Quo Vadis
Netcetera
 
PDF
EMV® Secure Remote Commerce
Netcetera
 
PDF
Context: The missing ingredient in multilingual software translation
Netcetera
 
PDF
Digital Payments - Netcetera Innovation Summit 2018
Netcetera
 
PDF
"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018
Netcetera
 
Payment trend scouting - Kurt Schmid, Netcetera
Netcetera
 
Boost your approved transaction volume - Ana Vuksanovikj Vaneska, Netcetera
Netcetera
 
Increase conversion, convenience and security in e-commerce checkouts - Silke...
Netcetera
 
3-D Secure 2.0 - Stephan Rüdisüli, Netcetera & Patrick Juffern, INFORM
Netcetera
 
Digital Payment in 2020 - Kurt Schmid, Netcetera
Netcetera
 
AI First. Erfolgsfaktoren für künstliche Intelligenz im Unternehmen
Netcetera
 
Augmenting Maintenance
Netcetera
 
Front-end up front
Netcetera
 
The future of Prototpying
Netcetera
 
EMV Secure Remote Commerce (SRC)
Netcetera
 
Online shopping technology in the fast lane?
Netcetera
 
Merchant tokenization and EMV® Secure Remote Commerce
Netcetera
 
Seamless 3-D Secure e-commerce experience
Netcetera
 
Augmenting Health Care
Netcetera
 
Driving transactional growth with 3-D Secure
Netcetera
 
Digital Payment Quo Vadis
Netcetera
 
EMV® Secure Remote Commerce
Netcetera
 
Context: The missing ingredient in multilingual software translation
Netcetera
 
Digital Payments - Netcetera Innovation Summit 2018
Netcetera
 
"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018
Netcetera
 

Recently uploaded (20)

PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Software Development Methodologies in 2025
KodekX
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Software Development Methodologies in 2025
KodekX
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 

Continuous Delivery

  • 1. Software-Deployments ohne graue Haare Continuous Delivery 24. Juni 2013 – Corsin Decurtins
  • 3. Netcetera | 3 Some numbers… On the left Traditional application from something like a bank, an insurance company, a government agency, a transport authority … you name it. On the right One of those new fancy social network, Web 2.0-ish application. Think Facebook, Google Mail, Flickr, Twitter, … Both are serious applications with serious business value and mission-critical IT systems.
  • 4. Netcetera | 4 Some numbers… Both applications need a high up-time. Deployments to the production environment are risky. Complex deployments with a lot of dependencies. Both companies try to reduce the risk of deployments. Deployments are painful and stressful.
  • 5. Netcetera | 5 Two completely different approaches "Banks" try to reduce the risk and effort for deployments by reducing the number of deployments. The "Web 2.0" side tries to reduce the risk of deployments by making much, much smaller deployments … but a lot of them.
  • 6. Netcetera | 6 If it hurts, do it often.
  • 7. Netcetera | 7 Our goals Improve Quality Fewer errors, less (unexpected) down-time. Standardization Different applications should deploy in a similar way. Make it easier for the operations and the development teams. Faster Deployments Less downtime, smaller need for off-hour deployments. More Deployments Faster time-to-market for features and bug fixes. Less Stress
  • 8. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 9. Netcetera | 9 Software Delivery Pipeline The Software Delivery Pipeline is the combined set of processes, procedures and tools that you use to bring code from the development environment into production. Of course you would make the pipeline even wider by including requirements engineering etc. but for the context of this talk, we will start with code.
  • 10. Netcetera | 10 Software Delivery Pipeline Builds Propagate through the Pipeline Successful completion of a step triggers the next steps. Errors interrupt the Pipeline In case of an error, the pipeline processing is interrupted. Expensive steps are only done if the previous steps worked For example (manual) User Testing is only done on builds that passed the automated tests. Some Pipeline steps might require manual triggering Deployment to uat or prod is probably still triggered manually
  • 11. Netcetera | 11 Software Delivery Pipeline A few things that you should notice right here: Everybody has a Software Delivery Pipeline. You might not have thought about it yet, it might be automated or manual, very simple or complex, but you have a pipeline. Whether you want it or not, whether you manage it or not. Your pipeline might look differently. Depends on the project, the customer, the business domain, the degree of maturity, …
  • 12. Netcetera | 12 Continuous Delivery Deliver software changes continuously and in a fully-automated way from the developer to the production environment. Very small increments Automation Fully automated QA Continuously Disruption-free deployments
  • 13. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 14. Netcetera | 14 Source Code Management (SCM) CVS and many more Filesystem
  • 15. Netcetera | 15 Source Code Management (SCM) We are currently moving from Subversion to Git Git has interesting properties related to Continuous Delivery Potentially different software delivery pipelines per branch Feature branches build, run unit tests, deploy to test, run integration tests, … but no deployment to QA and prod Master branch full software delivery pipeline
  • 16. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 17. Netcetera | 17 Artifact Repository Filesystem and many more
  • 18. Netcetera | 18 Artifact Repository Important for the reproducability of builds and releases We use Nexus
  • 19. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 20. Netcetera | 20 Build Server and many more
  • 21. Netcetera | 21 Build Server We use Jenkins (with some plugins) Continuous Delivery requires a lot of build server power We currently have more than 400 build jobs on our main Jenkins server 1 main server and 6 slaves Feature builds are yet to come We (normally) build at most once per hour Expensive build jobs (UI tests, performance tests) normally run only once per day
  • 22. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 23. Netcetera | 23 Issue Management and many more
  • 24. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 25. Netcetera | 25 Metrics / Monitoring and many more Infostore
  • 26. Netcetera | 26 Metrics Continuous collection of metrics about the code, deployments, performance numbers,… We use SonarQube for code analysis SonarQube rocks! Summary data from Sonar as well as other metrics are imported into Infostore Infostore is our company database Includes information on dependencies Hopefully soon as continuously measure performance metrics
  • 28. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 30. Netcetera | 30 Testing Fully automated and continuous testing is crucial Testing on very different levels and in different places in the software delivery pipeline Unit testing, integration testing, smoke tests, performance tests, load tests, UI tests, …
  • 31. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 32. Netcetera | 32 Deployment Installation of a software release on a target environment Replacement of existing software releases Data migration System reconfiguration
  • 33. Netcetera | 33 Automation of the Deployment Process $ deploy <application> <version> <environment> Deployment was successful $ deploy <application> <version> <environment> Deployment failed, rolled back to old version
  • 35. Netcetera | 35 Deployment Tools (1/2) We use Puppet for the deployment of infrastructure components Application servers, web servers, … Not suited for the application deployments that we do Security (push vs. pull) Lack of control over the deployment time For application deployment, we currently use scripts and Rundeck as well as Flyway for database migrations KISS We have looked at other tools.
  • 36. Netcetera | 36 Deployment Tools (2/2) The kind of deployment tool that you need, depends a bit on your needs. Scripts/Rundeck: very low level, but simple and effective LiveRebel: great for disruption-free deployments, but expensive if you do not need this feature glu (and similar tools): great if you need to deploy an application on a farm of servers (and monitor them) Puppet/Chef: great if you do not (have to) care about deployment times
  • 37. Netcetera | 37 Error Handling and Rollbacks Ability to roll back at any time Back up the preexisting state of the system Try to make the deployment non-destructive Detecting errors Deployment process has to be able to detect errors Automated Rollbacks Very desirable But also very complex Has to be tested (continuously)
  • 38. Netcetera | 38 Manual Rollback It's just a workaround, but often a viable option Probability of failing deployments is relatively small We are testing the deployment continuously after all Automated deployment process provides operations people with the necessary tools and artifacts to roll back easily Backups Non-destructive deployments
  • 40. Netcetera | 40 Disruption-Free Deployments If you make very frequent deployments, a downtime is not acceptable anymore. Different tools, technologies and architectures for doing disruption-free deployments.
  • 41. Netcetera | 41http://martinfowler.com/bliki/BlueGreenDeployment.html Blue/Green Deployments Two production environments; blue and green. Green is running as the current production system. Deploy to blue, test and verify. Switch from green to blue. Very elegant solution. State (database, session) is an issue.
  • 43. Netcetera | 43 LiveRebel Product from ZeroTurnaround Based on the JRebel technology Replace running code without the need for restarting Very cool technology Commercial product, but worth every penny (if you ask me) Far too expensive, if you do not really need disruption-free deployments
  • 44. Netcetera | 44 Tomcat Parallel Deployments
  • 45. Netcetera | 45http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment Tomcat Parallel Deployments Tomcat 7 Parallel Deployments Different version of a web application can be deployed in parallel Tomcat routes requests to the different versions: If no session information is present in the request, use the latest version. If session information is present in the request, check the session manager of each version for a matching session and if one is found, use that version. If session information is present in the request but no matching session can be found, use the latest version.
  • 46. Netcetera | 46 Data Migration Data migration is a tricky thing Slow Complex Error-prone Stop-the-World Automation and continuous testing helps More frequent and therefore smaller deployments help
  • 47. Netcetera | 47 Data Migration Patterns On-the-fly migration Application can deal with multiple versions of the database Data migration is done on-the-fly (batch job or touch-and-go) Read-Only availability Database is read-only as long as the migration is on-going Storage Layer abstraction Encapsulation of the storage layer NoSQL storage layer Less stringent requirements on schema compliance
  • 49. Netcetera | 49 Deployment Testing Deployments are tested continuously Continuous Testing environment Continuously, triggered automatically Pre-Production environment Regularly, triggered manually "Same" configuration as the production environment "Same" state as the production environment
  • 50. Netcetera | 50 Health-Check Pages Simple page/resource in the application Reports the current health status of an application Basically: I'm fine, thanks. Got everything that I need. Not doing very well, missing some dependencies. Trying my best. I'm giving up. Some crucial dependencies missing. Please help. <no answer at all> Can be used for monitoring purposes, but also for deployment smoke tests.
  • 52. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 53. Netcetera | 53 How far do you want to go? How far can you go? Is the effort worth it? Is the customer ready? Is the operations team ready? Mobile and client applications Technical limitations Build and test infrastructure Production infrastructure
  • 54. Netcetera | 54 A way towards Continuous Delivery It's a maturity process It takes time to get there Address what is hurting most Automate further and further Run continuously
  • 55. Netcetera | 55 Our Experiences Increase of quality Lowering of costs Developers Operations Customers Reduction of stress You can do a lot without asking for permission
  • 56. Netcetera | 56 Continuous Delivery Software Delivery Pipeline Automation Continuation of Continuous Integration Continuous… … Builds, Integration, Testing … Deployment, Migration Deployment Testing Smaller and faster deployments Reduction of Deployment Risks Quality Improvement Faster Deployments Down-Time minimalization Shorter time-to-production Less stressful deployments Potential for more frequent deployments
  • 57. Netcetera | 57 > deploy "Continuous Delivery" audience deployment of Continuous Delivery was started by user corsin Continuous Delivery was successfully deployed to environment audience log file has been stored to: http://www.slideshare.net/netceteragroup/ >
  • 58. prod dev dev test-int test-uat Metrics SCM Repo build unit testing check-in deploy deploy deploy integration testing performance testing user acceptance security review qa CSO ops
  • 59. Netcetera | 59 Further Reading Continuous Delivery Jez Humble, David Farley Literally the book on "Continuous Delivery".
  • 60. Netcetera | 60 Further "Reading" Continuous Delivery (Talk by Jez Humble, DevOps Day 2012) http://www.infoq.com/presentations/Continuous-Delivery Interview with Martin Fowler and Jez Humble on Continuous Delivery http://www.infoq.com/interviews/jez-humble-martin-fowler-cd Continuous Delivery (Blog by Jez Humble) http://continuousdelivery.com/
  • 61. Netcetera | 61 [email protected] +41 44 247 70 70 Corsin Decurtins Contact @corsin