Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Continuous Delivery in Motion
Search
Avinash Chugh
May 07, 2016
Programming
0
120
Continuous Delivery in Motion
The deck we used for the XConf Jaipur 2016.
Avinash Chugh
May 07, 2016
Tweet
Share
More Decks by Avinash Chugh
See All by Avinash Chugh
Platform Thinking - Bringing Agility to Business
avinashchugh
0
26
Embracing the changing technology paradigms
avinashchugh
0
22
product thinking is problem solving.
avinashchugh
0
140
The anatomy of a platform.
avinashchugh
0
100
Evolutionary Enterprise Architectures
avinashchugh
0
55
seven tips to effective writing
avinashchugh
0
180
clean code: four rules of simple design
avinashchugh
5
1.1k
micro services, yotta benefits
avinashchugh
1
170
managing build artifacts with nexus
avinashchugh
0
69
Other Decks in Programming
See All in Programming
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
240
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
120
みんなでプロポーザルを書いてみた
yuriko1211
0
280
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
1k
Remix on Hono on Cloudflare Workers
yusukebe
1
300
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
1.5k
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
630
EMになってからチームの成果を最大化するために取り組んだこと/ Maximize team performance as EM
nashiusagi
0
100
CSC509 Lecture 12
javiergs
PRO
0
160
Jakarta EE meets AI
ivargrimstad
0
140
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
327
38k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Automating Front-end Workflow
addyosmani
1366
200k
Optimizing for Happiness
mojombo
376
70k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Code Review Best Practice
trishagee
64
17k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
Transcript
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