Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Continuous Delivery in Motion
Search
Avinash Chugh
May 07, 2016
Programming
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Continuous Delivery in Motion
The deck we used for the XConf Jaipur 2016.
Avinash Chugh
May 07, 2016
Transcript
40 slides
CONTINUOUS DELIVERY IN MOTION Avinash Chugh & Praveer Gupta 1
AGENDA 2 ▪The business case ▪A typical delivery pipeline ▪Putting
it into practice
THE BUSINESS CASE 3
WHAT DOES IT TAKE FOR A BUSINESS TO SUCCEED 4
Faster time to market Being responsive to customer needs
TRUE AGILITY MEANS 5 Collaboration Rapid response to change Working
software
CONTINUOUS DELIVERY 6 Frequent Releases Reliable Releases
PERILS OF LONG RELEASE CYCLES 7 1 1 2 1
2 3 4 1 2 3 Release Time Unreleased changes = risk Risk Value
BENEFITS OF FREQUENT RELEASES 8 1 2 3 4 1
1 2 1 2 3 Release Release Release Released changes = value
9 HOW CAN I FREQUENTLY RELEASE SOFTWARE HOW CAN I
BUILD SOFTWARE INCREMENTALLY HOW CAN I CONFIDENTLY RELEASE NEW SOFTWARE
10 Release Iteration Story Commit MODERN DEVELOPMENT CYCLE
11 Series of commits Release MANY COMMITS FORMING A RELEASE
Release candidates Series of commits WHAT IF EACH COMMIT WERE
A RELEASE Releases on demand
DELIVERY PIPELINE 13
A DELIVERY PIPELINE 14 App Service Library
2. CI server checks out & compiles code 4. Code
analysis 5. Create & publish artifact 15 3. Unit tests 1. Developer commits code to SCM Commit Stage COMMIT STAGE
16 2. Retrieve artifact 4. Run smoke tests 5. Run
acceptance tests 3. Deploy artifact 1. Prepare environment Acceptance Stage ACCEPTANCE STAGE
17 2. Retrieve artifacts 4. Run smoke tests 3. Deploy
artifacts 1. Prepare environment Deploy Stage DEPLOY STAGE One-click deployments
1 2 3 4 5 6 A LOT HAPPENS BEFORE
A RELEASE 18 Regression testing User Acceptance Integration Infrastructure Setup Performance testing Security Audit
Increasing confidence Faster feedback SHORTER RELEASE CYCLE 19 Commit Live
TESTING PYRAMID 20 End to end – business facing Localized
– technology facing ▪Slower feedback ▪Higher cost of change
DEVELOPMENT IN SILOS 21 Merge Merge Trunk Anti-pattern: Feature branching
LOW REUSE AND MERGE ISSUES 22 Merge Merge Trunk 2
2 3 4 2 3 1 1 1 1 4 5 2 3 1 2 1 3 2 1 1 4 3 2 1 4 3 2 1 4 5 2 3
COLLABORATIVE DEVELOPMENT 23 Trunk 1 2 3 4 5 1
1 3 4 2 4 5 2 1 3 2 4 3 Key principle: Continuous Integration
CONTINUOUS INTEGRATION PRACTICES 24 ▪ One component, one repository ▪
Everyone commits to trunk every day ▪ No branches
25 CD Tools IAAS PAAS Mobile Systems Delivering software CONTINUOUS
DELIVERY IN DIVERSE CONTEXTS
CD IN PRACTICE 26
MANAGING LARGE CODE BASES 27 ▪ Dependency management ▪ Service
Oriented Architectures ▪ Microservices
RELEASING INCOMPLETE WORK 28 [featureToggles] wobblyFoobars: true flightyForkHandles: false Config
File <toggle name=wobblyFoobars> ... various UI elements </toggle> some.jsp forkHandle = (featureConfig.isOn(‘flightlyForkHandles)) ? new FlightyForkHander(aCandle) : new ForkHandler(aCandle) other.java Pattern: Feature toggles
GUIDELINES FOR FEATURE TOGGLES 29 ▪ Use them only when
needed ▪ Prefer feature hiding ▪ Remove toggles once feature is live
MAKING BIG CHANGES 30 Application New Library Library Pattern: Branch
by abstraction
31 Interface implements Application New Library Library MAKING BIG CHANGES
32 Interface implements Application New Library Library MAKING BIG CHANGES
33 Interface implements Application New Library Library MAKING BIG CHANGES
34 Interface implements Application New Library MAKING BIG CHANGES
35 Application New Library MAKING BIG CHANGES
WRAPPING UP 36
WHAT WE COVERED 37 ▪Fast feedback, and short release cycles
▪Keeping WIPs to a minimum ▪If it’s hard, do it more often ▪Trunk-based development ▪The need for automation ▪Feature toggles ▪Branch by abstraction
SO MUCH MORE TO EXPLORE 38 ▪Deployment strategies ▪Automated deployments
▪Configuration management ▪Infrastructure provisioning ▪Cloud deployments ▪Virtualization ▪Tooling support
39 ADDITIONAL READING
@thoughtworks THANK YOU
More Decks by Avinash Chugh
See All by Avinash Chugh
Platform Thinking - Bringing Agility to Business
avinashchugh
0
59
Embracing the changing technology paradigms
avinashchugh
0
57
product thinking is problem solving.
avinashchugh
0
170
The anatomy of a platform.
avinashchugh
0
130
Evolutionary Enterprise Architectures
avinashchugh
0
77
seven tips to effective writing
avinashchugh
0
250
clean code: four rules of simple design
avinashchugh
5
1.2k
micro services, yotta benefits
avinashchugh
1
220
managing build artifacts with nexus
avinashchugh
0
120
Other Decks in Programming
See All in Programming
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
140
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
140
Ruby から Emacs を操作したい
phigasui
0
360
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
320
あなたはMCPの機能を、まだ知らない。
4geru
1
680
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
250
LLM 101
dalinaum
0
510
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
140
Distance field of Julia set
kinakomoti321
0
330
Spec-driven Development with AI
simas
PRO
0
2.3k
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
290
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.5k
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
310
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
How Software Deployment tools have changed in the past 20 years
geshan
3
35k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
Building Adaptive Systems
keathley
44
3.3k
Git: the NoSQL Database
bkeepers
PRO
433
67k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k
The SEO Collaboration Effect
kristinabergwall1
1
620
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
620
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k