SlideShare a Scribd company logo
Accelerate Delivery
BUSINESS CASE: AGILE DEVOPS, CI/CD,
MICROSERVICES
Accelerate Delivery: Business case for Agile DevOps, CI/CD and Microservices
The promise of CI/CD and Agile/DevOps culture
What we are after!
evOps, Continuous Deployment and Continuous Integration (CI/C
Why we care?
About Presenter• Author of best-selling agile development book, early adopter of TDD,
DevOps, Agile, etc.
• Highest leadership scores with highest performing team in a 2,000+
person group: Group utilized: Jenkins pipelines, Event Hub/EEL, High-
code coverage, PR process, Trunk based git like GitHub flow, full
automation, etc.
• Two awards from CIO at fortune 100, amazing results G.O.A.T and
Engineering Excellence
• Written open source software used by millions
• Early adopter and advocate of MicroServices and reactive high-speed
streaming, 12 factor deployment, container orchestration, in-memory
compute.
• Speaker at conferences on microservice development, a Java Champion
(chosen from millions of devs), parsers, distributed data grids, books,
articles, etc.
• Worked on Vert.x, QBit, Reakt, Groovy, Boon, etc.
Slide deck based on many books, and
more
• Past experience
• Latest trends
Outline
• How we got here
• History of
• MicroServices
• DevOps / Agile
• CI/CD
• Kubernetes
• Business
proposition
• CD/CD - DevOps practices
• Continuous delivery
• Continuous integration
• Lean management and
monitoring / KPIs
• SCM / Version Control /
GitOps / Immutable
infrastructure
• Trunk-based development
• Concrete Best practices and
demo
Brief history of Microservices and
Agile,CI/CD
Brief history of time
How we got here
• Web pages that were brochures
• eCommerce
• Legacy integration
• Rush to “Webify” businesses
• SOA: Wrap legacy systems as services to use from web
• Virtualization, Virtualization2.0, Cloud, Containers, and now
Container orchestration
“Now you can run a JVM in a Docker image which is
just a process pretending to be an OS running in an
OS that is running in the cloud which is running inside
of a virtual machine which is running in Linux server
that you don’t own that you share with people who you
don’t know.”
Microservices Architecture
“The Java EE container is no longer needed because
servers are not giant refrigerator boxes that you order
from Sun and wait three months for (circa 2000)..… One
issue with enterprise components is they assume the use
of hardware servers which are large monoliths and you
want to run a lot of things on the same server. Well, turns
out in (today), that makes no sense. Operating systems and
servers are ephemeral, virtualized resources and can be
shipped like a component. We have EC2 images AMIs, …
Kubernetes and Docker. The world changed. Move on….
Microservices just recognize this trend so you are not
developing like you did when the hardware, cloud
orchestration, multi-cores, and virtualization was not there.
You did not develop code in the 90s with punch cards did
you?”
Microservices Architecture
Microservices: Natural
Evolution
Microservices• Focus is building small, reusable, scalable services
• Adopt the Unix single purpose utility approach to service
development
• Small so they can be released more often and are written to be
malleable
• Easier to write
• Easier to change
• Go hand in hand with continuous integration and continuous
delivery
• Heavily REST based and messaging
What is microservice architecture?Microservices Architecture
Microservices: Key
ingredients
• Independently deployable, small, domain-driven services
• Own their data (no shared databases)
• Communication through a well-defined wire protocol
usually JSON over HTTP (curl-able interfaces)
• Well defined interfaces and minimal functionality
• Avoiding cascading failures and synchronous calls -
reactive designing for failure
What is microservice architecture?
Microservices: Evolution of
SOA
• SOA and Microservices have common goals and
purposes
• Refinement to meet goals of polyglot devices and
3rd generation virtualization (cloud, container,
container orchestration)
• Parts of SOA that worked well
• MS: Web technologies to provide scalability,
modular, domain-drive, small, and continuously
deployable cloud-based services
What is microservice architecture?
It’s not the daily
increase but daily
decrease. Hack away
at the unessential. --
Bruce Lee
SOA vs. Microservices
“Microservices Architecture is taking what perhaps started out as SOA and
applying lessons learned as well as pressure to support polyglot devices,
deploy more rapidly and the architecture liquidity that cloud computing and
virtualization/containerization provide. You mix all that together and you
can see where Microservices Architecture started. Microservices
Architecture is in general less vendor driven than SOA and more needs
driven by demands of application development and current cloud
infrastructure.”
MicroServices: Unix
Philosophy• Microservices compares to Unix philosophy,
• Ken Thompson, Unix creator, said Unix has a
philosophy of:
one tool, one job
• “Unix philosophy emphasizes building short, simple,
clear, modular, and extendable code that can be
easily maintained and repurposed by developers
other than its creators”
What is microservice architecture?
MicroServices: Achieving
Resilience• Avoid synchronous calls to avoid cascading
failures
• Microservices tend to embrace streams,
queues, actor systems, event loops and
other async calls
• Spend more time with distributed logging /
log aggregation w/ MDC and now distributed
tracing
MicroServices: Monitoring and
KPIs
• User Experience KPIs
• Debugging (requests per second,
#threads, #connections, failed auth,
expired tokens, etc.)
• Circuit Breaker (monitor health, restarts,
act/react)
• Cloud Orchestration (monitor load, spin
up instances)
• Health checks and observable KPIs
"doveryai no proveryai"
(trust, but verify)
Microservice Monitoring
“Just remember Microservices are not a new
thing, and they are not cool or hip.
Microservices are obvious evolutionary
architecture to address the revolutionary things
that already happened: web, cloud, mobile,
server virtualization, OS containerization,
container orchestration, multi-core servers,
cheaper and cheaper RAM, 64 bit computing,
10GBE, 100GBE, etc.”
Microservices Architecture
MicroServices: Continuous
Deployment
• Microservices are Continuously deployable
services
• Microservices focus on business capability,
and a refocus on object oriented
programming roots and organizing code
around business domains with data and
business rules co-located in the same
process or set of processes
MicroServices: Continuous
Deployment
• Focus of Microservices is on breaking up applications into small
(micro) reusable services which might be useful to other
services or other applications.
• Services can be deployed independently
• Each of these services to be tweaked, and then redeployed
independently
• This is where the "micro" part of microservices comes into
play
• Microservice vs Monolith
What is microservice architecture?
DevOps, Agile, TDD, CI/CD
Brief history of time
XP, Agile, Scrum, TDD,
CI/CD• TDD, CI and CI/CD
• Test Driven Development and Agile
• XP, Agile, Scrum
• CI/CD (Jenkins and the tools that came
before)
• CI/CD needs automated testing
DevOps Background / Styles
• DevOps aka DevSecOps
• Heroku and the birth of 12 factor deployment, DevOps, KPIs, SRE
• YBYOI vs. SRE vs. DevOps and where do you fit?
• SRE: Observability, Log aggregation, KPIs/Metrics, Distributed/Trace
logging
• Container Orchestration: Yarn, Mesos, Marathon, Nomad, Borg and
Kubernetes
• What is GitOps? What is immutable infrastructure?
• What is cloud native?
Kubernetes (K8s)
• Services, Stateful sets, Namespaces, Tags, Ingress, Egress
• Helm/Kustomize for packaging an app or set of related uServices and deploy to
K8s
• Multi-cloud support and just cloud support
• Monitoring built-in (or at least easily pluggable)
• Easy to ramp up (or easier)
• Supports flexible deployment models
• Integrates with Cloud providers services or runs standalone (on prem or cloud)
• What came before and now: Heroku/PaaS/IAAS/EC2, Docker, Docker Swarm,
Mesos/Marathon, Nomad, ECS, EKS, etc. K8s is the current mindshare champ.
Accelerate Delivery: Business case for Agile DevOps, CI/CD and Microservices
Business case: Winning the race
Why we want to do it? Why it is important!
Accelerate DevOps
Source, Forsgren PhD, Nicole. Jez Humble, Gene Kim, Accelerate . IT Revolution Press. Kindle Edition.
Acceleration in Practice
• Make customers happy
• Deliver more
• Less Burnout
• Grow the value of the
company
• Make more money
Organizational performance
• High performers 2x the rate will exceed organizational
performance goals as low performers:
• 2x profitability
• 2x productivity
• 2x market share
• 2x number of customers
Organizational performance
Part II
• High performers twice as likely to exceed non-commercial
performance goals as low performers
• 2x better quantity of products and services
• 2x operating efficiency
• 2x customer satisfaction
• 2x quality of products/services
• 2x achieving organizational/mission goals
Organizational performance Part III
50% increase in market
capitalization compared to low
performers!
Software delivery
performance• Deploy frequency, Lead time, mean time to restore (MTTR),
and change fail percentage do well to predict overall software
delivery performance
• Improving software delivery performance improves tempo and
stability
• Software delivery performance improves organizational
performance and quality/customer satisfaction
• Deploy frequency is highly correlated with continuous delivery
and use of version control best practices
Software delivery
performance II• Lead time is highly correlated with good version control
and automated testing
• MTTR is highly correlated with version control and
monitoring
• Software delivery performance is negatively correlated
with deployment pain
• Software delivery performance is correlated with
organizational investment in DevOps
Quality
Source, Forsgren PhD, Nicole. Jez Humble, Gene Kim, Accelerate . IT Revolution Press. Kindle Edition.
st amount of manual work across all practices - configuration m
Culture
• 5 factors most associated with burnout are
negatively impacted by bad software delivery
performance
• Deployment pain and poor software delivery
practices cause organizational burnout
Improve culture by improving
practices• Technical practices predict continuous delivery
• Improve organizational culture, identity, job
satisfaction, software delivery performance, less
burnout, less deployment pain, and less time
spent on rework!
• High performers spend 50% less time
remediating security issues than low
performers
Trunk based Development (like Github flow)
• ​High performers have shortest integration times
and branch lifetimes
• Branch life and integration typically lasting hours
or a day
• Low performers have longest integration times
and branch lifetimes
• Branch life and integration typically lasting days or
weeks
Architecture
• Loosely coupled, well-encapsulated
architecture drives IT performance.
• 2017 dataset biggest contributor to
continuous delivery was loosely coupled,
well-encapsulated architecture
Lean Product Management
Capabilities
• Experimental approach to product
development highly correlates with
continuous delivery
• Lean product development capabilities
predict improvements in organizational
culture like reduced burnout higher software
delivery performance and overall
organizational performance
How we get there
Rules of the road
Accelerate DevOps
• Continuous delivery
• Architecture
• Product and process
• Lean Management and monitoring
• Cultural
Continuous delivery
capabilities
1. Implement continuous delivery / continuous deployment
2. Version control all production artifacts
3. Automate your deployment pipeline
4. Implement continuous integration
5. Use trunk-based development methods (like Github flow
instead of git flow)
6. Implement test automation
7. Shift left on security
Product and Process
Capabilities
• Gather and implement customer feedback
• Make the flow of work through the system
visible
• Work in small batches
• Foster and enable team experimentation
Culture capabilities
• Support a generative culture
• Encourage and support learning
• Encourage collaboration
• Make work as meaningful as possible
• Support and encourage transformational
leadership
Architectural Capabilities to
Accelerate
• Use loosely coupled architecture
• Release new services on demand
without outages
• Empower the team to select tools; trust team
to pick the best tools
Lean management and Monitoring
Capabilities
• Have a light weight change approval process
• Monitor application and system KPIs to inform business
decisions
• Proactively check system health
• Preemptively detect and mitigate problems
• Improve process and work within WIP limits
• Set up visible dashboards to monitor/communicate WIP,
quality, applications and systems
Example monitoring
• Hygieia
• Productivity dashboards
• Jenkins dashboards
• Runtime KPIs
• Customer KPIs
Lean Management
• Process: Small Batches
• Decompose into features that allow for rapid development
• MVP - prototype with just enough features to proved business value or enable validated
learning
• Quickly gather customer requirements (A/B testing, customer satisfaction surveys, etc.)
• Team experimentation
• Lean Management: Change approval
• Lean Management: Proactive notification
• Lean Management: Monitoring and KPIs
• Lean Management: WIP limits, visualizing work
Companies with regulatory requirements or strict CCB
Can focus on Continuous Delivery
Continuous Deployment can be part of a workflow and
Based on the Continuous Delivery
Version control - SCM
• GitOps - keeping application code, system configuration,
application configuration, and scripts for automating build and
configuration in version control.
• Factors together predict IT performance
• Key component of continuous delivery
• Immutable infrastructure
• GitOps - keeping system and application config in git
(versioned) correlates high with delivery performance
Deployment Automation
• Deployment automation
• Containers, config, immutable infrastructure
• Comprehensive configuration management
(automation scripts), continuous integration and
continuous testing
• Key metric of GitOps is how much diffs exists in
system config from git to deploy
Continuous Integration
• Continuous integration
• Relies on SCM and Deployment automation
• Relies on automated tests
• Unit
• Integration
• Acceptance
Trunk-based development
• Trunk-based development
• Like GitHub Flow but shorter lived branches
• Fewer active branches that never outlive a sprint
• Branch-off master per feature, bug fix, etc.
• More PRs more often
• No code freezes; integration periods less than a day
• Polar opposite of git flow
Shift left on security
• Integrating security into design and testing
phases
• Security reviews of applications, including
the infosec team in design and demo
process
• Using pre-approved security libraries and
packages, and testing security features as a
part of automated testing suite
Continuous delivery
• The ability to deliver
• Build quality in
• Work in small batches
• Automate repetitive tasks including testing &
deployments
• Pursue continuous improvement
• Ownership
• Comprehensive configuration management
• Continuous integration
• Continuous testing
You can’t skip steps.
There is investment
up front.
Today’s speed up can
be tomorrows painted
yourself
In a corner.
Knowing the road
Best practices applied
Prefer Microservices…
• Monoliths can speed up MVP and prototypes but at
a cost
• Monoliths make make CI/CD slower?
• Monoliths make Automated tests suites harder to
build and they are needed for CI/CD
• Smaller Monoliths and SOA is a move in the right
direction, but monoliths should be considered
technical debt
Prefer Microservices
• Refactoring to Microservices is a journey
• Know when to employ Microservices
• Fits the CI/CD well
• Fits small batch well
• How Micro can mean different things as you get better at
Microservices
• Why today's micro could be tomorrows Monolith?
• Adoption is a Journey
Embrace Observability from the
start
• Log aggregation
• Time series data base
• Log all KPIs for clusters
• Log all KPIs for applications and services
• Alerting
• Know when and how to employ distributed tracing
• Distributed/Trace logging
What is a PR? And how to ensure quality
with it
• A PR is a pull-request
• PR gives other developers a chance to review code before it
committed to master
• PR via small batch (why small? JIRA story or even a task or two)
• With GitHub and WebHooks you can block PRs from merging
• Code coverage met, build works, unit tests run, other checks via
Jenkins
• Review and approved by at least two people
Tests to create: TDD
• Unit tests
• Perf testing JMH
• Functional tests
• At the HTTP
layer
• At the Spring
Boot layer
• Acceptance tests
• Smoke integration tests
• Full integration tests
• Synthetic testing
• Code Coverage (sonarqube)
• Security/Vulnerability dependency license
checks
• Aqua, Fortify
• Full integration perf testing
CI/CD to enforce quality
• CI/CD
• Deploy often (daily or more)
• Test often (after every checkin run all automated tests)
• Block PRs from merging until they pass tests
• Block PRs until they are reviewed
• Block PRs until they reach a certain code coverage
Testing is a MUST!
• You can't do CI/CD without automated
testing
• Testing allows you to move quickly with
confidence
Embrace small batch work
• Goal of three PRs per week
• Goal of one to two tasks from JIRA per PR
• Use JIRA # in commits and PR comments
• Break stories and features up into tasks
• Check in interim stories
• Use feature flags if it is hard to break up a feature or
story
Automated deployment
• Merging into master triggers a deploy to integration and sends a Team message
• Approval from Product Manager pushes code to Prod or Demo
• Checking into main branch from PR
• Artifacts and scripts for deployment checked into git and should not be modified
• Puts code staging area to be checked by Product Manager
• into containers and deploys to cluster (some ephemeral some not)
• Once checked by Infosec and Product Manager: Canary Deploys to 3 to 5% of
traffic and is monitored (end goal)
• Then more and more as it is monitored and is ok
Using docker, helm,
Kubernetes
• Uber dev tools
• Persistent cluster set up
• Helm install Kubernetes
• Easy to integrate locally
• Docker, docker-deploy, helm, etc.
• Local integration possible and repeatable
Demo
Jenkins
Minikube
Spring Boot
Konfigure
Kubernetes
The race is won
Conclusion
Transformation is a business
imperative• You can’t afford not to transform
• Transformation requires a deep understanding of
practices
• Having a team called DevOps is not doing DevOps
per se
• Culture of DevOps, Agility, Lean, MVP, etc. is a
clear win
• There are guides, books, practices, and information
Read Accelerate by Forsgren PhD, Nicole. Jez Humble, Gene Kim.
Also read The Loop Approach: How to Transform your organization from
The inside out! By Sebastian Klein and Ben Hughes
Also read Cloud Native DevOps with Kubernetes by John Arundel and Justin Domingus

More Related Content

PPT
O2 Presentation Sdp Event
PDF
WAA Web Analytics Definitions
PDF
Developer Report 2021 (Published: January 2021)
PDF
Cloud Computing Michael Davis 2008 Aug17
PDF
Developer Report 2021 (Published: January 2021)
PDF
Educational Agility
PDF
Managing your black Friday logs - CloudConf.IT
PPTX
The Violet Society: Product Management Fellowship Showcase - Summer 2019
O2 Presentation Sdp Event
WAA Web Analytics Definitions
Developer Report 2021 (Published: January 2021)
Cloud Computing Michael Davis 2008 Aug17
Developer Report 2021 (Published: January 2021)
Educational Agility
Managing your black Friday logs - CloudConf.IT
The Violet Society: Product Management Fellowship Showcase - Summer 2019

What's hot (20)

PPT
Cloud Computing
PDF
Developer Report 2021 (Published: January 2022)
PDF
Business Analysis: Challenges and Opportunities in 2015 (Denys Gobov Product ...
PDF
AI Weekly - April 12, 2021
PDF
LUKSO - NOAH19 Berlin
PDF
Energy Tokens Pitch Deck - Creating Energy Asset Liquidity Through Blockchain...
PDF
Developer Report (Published: December 2020, Updated: April 2021)
PDF
DAppTotal Research Report On DeFi Industry (First Half Of 2019)
PDF
Developer Report 2021 (Published: January 2021)
PPTX
Bitcoin's Next Chapter(s)
PDF
Ravencoin Wallet
PDF
Developer Report (Published: August 2019)
PDF
Dev Report (Published: March 2019)
PDF
Electric Capital Developer Report (Published: December 2020)
PDF
Developer Report (Published: December 2020)
PDF
Developer Report (Published: December 2020)
PDF
AI Blockchain IoT Convergence for ESG Digital Transformation Insights from Pa...
PDF
The Human Body in the IoT. Tim Cannon + Ryan O'Shea
PPTX
ESG Performance Score - Materiality Comparisons Across Industries
PDF
AI and Blockchain Applications for ESG
Cloud Computing
Developer Report 2021 (Published: January 2022)
Business Analysis: Challenges and Opportunities in 2015 (Denys Gobov Product ...
AI Weekly - April 12, 2021
LUKSO - NOAH19 Berlin
Energy Tokens Pitch Deck - Creating Energy Asset Liquidity Through Blockchain...
Developer Report (Published: December 2020, Updated: April 2021)
DAppTotal Research Report On DeFi Industry (First Half Of 2019)
Developer Report 2021 (Published: January 2021)
Bitcoin's Next Chapter(s)
Ravencoin Wallet
Developer Report (Published: August 2019)
Dev Report (Published: March 2019)
Electric Capital Developer Report (Published: December 2020)
Developer Report (Published: December 2020)
Developer Report (Published: December 2020)
AI Blockchain IoT Convergence for ESG Digital Transformation Insights from Pa...
The Human Body in the IoT. Tim Cannon + Ryan O'Shea
ESG Performance Score - Materiality Comparisons Across Industries
AI and Blockchain Applications for ESG
Ad

Similar to Accelerate Delivery: Business case for Agile DevOps, CI/CD and Microservices (20)

PPTX
Accelerate DevOps/Microservices and Kubernetes
PPTX
Business and IT agility through DevOps and microservice architecture powered ...
PPTX
Microservices, Containers, Scheduling and Orchestration - A Primer
PPTX
Kubernetes solutions
PDF
AWS Innovate: Smaller IS Better – Exploiting Microservices on AWS, Craig Dickson
PPTX
Cloud 2.0: Containers, Microservices and Cloud Hybridization
PDF
node.js and Containers: Dispatches from the Frontier
PPTX
Why to Cloud Native
PDF
Practical Microservice Architecture (edition 2022).pdf
PPTX
FLUX - Crash Course in Cloud 2.0
PPTX
Microservices and docker
PDF
Accelerate Delivery: Business Case for Agile DevOps, CI/CD and Microservices
PDF
The DIY Punk Rock DevOps Playbook
PDF
Microservices Journey NYC
PPTX
Introduction To Microservices
PDF
Sviluppare velocemente applicazioni sicure con SUSE CaaS Platform e SUSE Manager
PDF
Cloud Computing as Innovation Hub - Mohammad Fairus Khalid
PDF
Transformação Digital – Onde se encontra a Indústria.
PPTX
Using Camunda on Kubernetes through Operators
PDF
Java Agile ALM: OTAP and DevOps in the Cloud
Accelerate DevOps/Microservices and Kubernetes
Business and IT agility through DevOps and microservice architecture powered ...
Microservices, Containers, Scheduling and Orchestration - A Primer
Kubernetes solutions
AWS Innovate: Smaller IS Better – Exploiting Microservices on AWS, Craig Dickson
Cloud 2.0: Containers, Microservices and Cloud Hybridization
node.js and Containers: Dispatches from the Frontier
Why to Cloud Native
Practical Microservice Architecture (edition 2022).pdf
FLUX - Crash Course in Cloud 2.0
Microservices and docker
Accelerate Delivery: Business Case for Agile DevOps, CI/CD and Microservices
The DIY Punk Rock DevOps Playbook
Microservices Journey NYC
Introduction To Microservices
Sviluppare velocemente applicazioni sicure con SUSE CaaS Platform e SUSE Manager
Cloud Computing as Innovation Hub - Mohammad Fairus Khalid
Transformação Digital – Onde se encontra a Indústria.
Using Camunda on Kubernetes through Operators
Java Agile ALM: OTAP and DevOps in the Cloud
Ad

More from Rick Hightower (18)

PDF
JParse Fast JSON Parser
PDF
Service Mesh Talk for CTO Forum
PPTX
Service Mesh CTO Forum (Draft 3)
PPTX
Accelerate using DevOps and CI/CD.
PPTX
High-speed, Reactive Microservices 2017
PPTX
Reactive Java: Promises and Streams with Reakt (JavaOne Talk 2016)
PPTX
Reactive Java: Promises and Streams with Reakt (JavaOne talk 2016)
PPTX
High-Speed Reactive Microservices - trials and tribulations
PDF
High-Speed Reactive Microservices
PPTX
Netty Notes Part 3 - Channel Pipeline and EventLoops
PPTX
Netty Notes Part 2 - Transports and Buffers
PPTX
Notes on Netty baics
PPTX
WebSocket MicroService vs. REST Microservice
PDF
Consul: Microservice Enabling Microservices and Reactive Programming
PDF
The Java Microservice Library
PPTX
Java JSON Benchmark
PPT
MongoDB quickstart for Java, PHP, and Python developers
PPT
Mongo DB for Java, Python and PHP Developers
JParse Fast JSON Parser
Service Mesh Talk for CTO Forum
Service Mesh CTO Forum (Draft 3)
Accelerate using DevOps and CI/CD.
High-speed, Reactive Microservices 2017
Reactive Java: Promises and Streams with Reakt (JavaOne Talk 2016)
Reactive Java: Promises and Streams with Reakt (JavaOne talk 2016)
High-Speed Reactive Microservices - trials and tribulations
High-Speed Reactive Microservices
Netty Notes Part 3 - Channel Pipeline and EventLoops
Netty Notes Part 2 - Transports and Buffers
Notes on Netty baics
WebSocket MicroService vs. REST Microservice
Consul: Microservice Enabling Microservices and Reactive Programming
The Java Microservice Library
Java JSON Benchmark
MongoDB quickstart for Java, PHP, and Python developers
Mongo DB for Java, Python and PHP Developers

Recently uploaded (20)

PPTX
Machine Learning_overview_presentation.pptx
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Approach and Philosophy of On baking technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
1. Introduction to Computer Programming.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
Spectroscopy.pptx food analysis technology
Machine Learning_overview_presentation.pptx
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Getting Started with Data Integration: FME Form 101
NewMind AI Weekly Chronicles - August'25-Week II
Digital-Transformation-Roadmap-for-Companies.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Approach and Philosophy of On baking technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
1. Introduction to Computer Programming.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Spectral efficient network and resource selection model in 5G networks
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A Presentation on Artificial Intelligence
Spectroscopy.pptx food analysis technology

Accelerate Delivery: Business case for Agile DevOps, CI/CD and Microservices

  • 1. Accelerate Delivery BUSINESS CASE: AGILE DEVOPS, CI/CD, MICROSERVICES
  • 3. The promise of CI/CD and Agile/DevOps culture What we are after!
  • 4. evOps, Continuous Deployment and Continuous Integration (CI/C Why we care?
  • 5. About Presenter• Author of best-selling agile development book, early adopter of TDD, DevOps, Agile, etc. • Highest leadership scores with highest performing team in a 2,000+ person group: Group utilized: Jenkins pipelines, Event Hub/EEL, High- code coverage, PR process, Trunk based git like GitHub flow, full automation, etc. • Two awards from CIO at fortune 100, amazing results G.O.A.T and Engineering Excellence • Written open source software used by millions • Early adopter and advocate of MicroServices and reactive high-speed streaming, 12 factor deployment, container orchestration, in-memory compute. • Speaker at conferences on microservice development, a Java Champion (chosen from millions of devs), parsers, distributed data grids, books, articles, etc. • Worked on Vert.x, QBit, Reakt, Groovy, Boon, etc.
  • 6. Slide deck based on many books, and more • Past experience • Latest trends
  • 7. Outline • How we got here • History of • MicroServices • DevOps / Agile • CI/CD • Kubernetes • Business proposition • CD/CD - DevOps practices • Continuous delivery • Continuous integration • Lean management and monitoring / KPIs • SCM / Version Control / GitOps / Immutable infrastructure • Trunk-based development • Concrete Best practices and demo
  • 8. Brief history of Microservices and Agile,CI/CD Brief history of time
  • 9. How we got here • Web pages that were brochures • eCommerce • Legacy integration • Rush to “Webify” businesses • SOA: Wrap legacy systems as services to use from web • Virtualization, Virtualization2.0, Cloud, Containers, and now Container orchestration
  • 10. “Now you can run a JVM in a Docker image which is just a process pretending to be an OS running in an OS that is running in the cloud which is running inside of a virtual machine which is running in Linux server that you don’t own that you share with people who you don’t know.” Microservices Architecture
  • 11. “The Java EE container is no longer needed because servers are not giant refrigerator boxes that you order from Sun and wait three months for (circa 2000)..… One issue with enterprise components is they assume the use of hardware servers which are large monoliths and you want to run a lot of things on the same server. Well, turns out in (today), that makes no sense. Operating systems and servers are ephemeral, virtualized resources and can be shipped like a component. We have EC2 images AMIs, … Kubernetes and Docker. The world changed. Move on…. Microservices just recognize this trend so you are not developing like you did when the hardware, cloud orchestration, multi-cores, and virtualization was not there. You did not develop code in the 90s with punch cards did you?” Microservices Architecture Microservices: Natural Evolution
  • 12. Microservices• Focus is building small, reusable, scalable services • Adopt the Unix single purpose utility approach to service development • Small so they can be released more often and are written to be malleable • Easier to write • Easier to change • Go hand in hand with continuous integration and continuous delivery • Heavily REST based and messaging What is microservice architecture?Microservices Architecture
  • 13. Microservices: Key ingredients • Independently deployable, small, domain-driven services • Own their data (no shared databases) • Communication through a well-defined wire protocol usually JSON over HTTP (curl-able interfaces) • Well defined interfaces and minimal functionality • Avoiding cascading failures and synchronous calls - reactive designing for failure What is microservice architecture?
  • 14. Microservices: Evolution of SOA • SOA and Microservices have common goals and purposes • Refinement to meet goals of polyglot devices and 3rd generation virtualization (cloud, container, container orchestration) • Parts of SOA that worked well • MS: Web technologies to provide scalability, modular, domain-drive, small, and continuously deployable cloud-based services What is microservice architecture? It’s not the daily increase but daily decrease. Hack away at the unessential. -- Bruce Lee
  • 15. SOA vs. Microservices “Microservices Architecture is taking what perhaps started out as SOA and applying lessons learned as well as pressure to support polyglot devices, deploy more rapidly and the architecture liquidity that cloud computing and virtualization/containerization provide. You mix all that together and you can see where Microservices Architecture started. Microservices Architecture is in general less vendor driven than SOA and more needs driven by demands of application development and current cloud infrastructure.”
  • 16. MicroServices: Unix Philosophy• Microservices compares to Unix philosophy, • Ken Thompson, Unix creator, said Unix has a philosophy of: one tool, one job • “Unix philosophy emphasizes building short, simple, clear, modular, and extendable code that can be easily maintained and repurposed by developers other than its creators” What is microservice architecture?
  • 17. MicroServices: Achieving Resilience• Avoid synchronous calls to avoid cascading failures • Microservices tend to embrace streams, queues, actor systems, event loops and other async calls • Spend more time with distributed logging / log aggregation w/ MDC and now distributed tracing
  • 18. MicroServices: Monitoring and KPIs • User Experience KPIs • Debugging (requests per second, #threads, #connections, failed auth, expired tokens, etc.) • Circuit Breaker (monitor health, restarts, act/react) • Cloud Orchestration (monitor load, spin up instances) • Health checks and observable KPIs "doveryai no proveryai" (trust, but verify) Microservice Monitoring
  • 19. “Just remember Microservices are not a new thing, and they are not cool or hip. Microservices are obvious evolutionary architecture to address the revolutionary things that already happened: web, cloud, mobile, server virtualization, OS containerization, container orchestration, multi-core servers, cheaper and cheaper RAM, 64 bit computing, 10GBE, 100GBE, etc.” Microservices Architecture
  • 20. MicroServices: Continuous Deployment • Microservices are Continuously deployable services • Microservices focus on business capability, and a refocus on object oriented programming roots and organizing code around business domains with data and business rules co-located in the same process or set of processes
  • 21. MicroServices: Continuous Deployment • Focus of Microservices is on breaking up applications into small (micro) reusable services which might be useful to other services or other applications. • Services can be deployed independently • Each of these services to be tweaked, and then redeployed independently • This is where the "micro" part of microservices comes into play • Microservice vs Monolith What is microservice architecture?
  • 22. DevOps, Agile, TDD, CI/CD Brief history of time
  • 23. XP, Agile, Scrum, TDD, CI/CD• TDD, CI and CI/CD • Test Driven Development and Agile • XP, Agile, Scrum • CI/CD (Jenkins and the tools that came before) • CI/CD needs automated testing
  • 24. DevOps Background / Styles • DevOps aka DevSecOps • Heroku and the birth of 12 factor deployment, DevOps, KPIs, SRE • YBYOI vs. SRE vs. DevOps and where do you fit? • SRE: Observability, Log aggregation, KPIs/Metrics, Distributed/Trace logging • Container Orchestration: Yarn, Mesos, Marathon, Nomad, Borg and Kubernetes • What is GitOps? What is immutable infrastructure? • What is cloud native?
  • 25. Kubernetes (K8s) • Services, Stateful sets, Namespaces, Tags, Ingress, Egress • Helm/Kustomize for packaging an app or set of related uServices and deploy to K8s • Multi-cloud support and just cloud support • Monitoring built-in (or at least easily pluggable) • Easy to ramp up (or easier) • Supports flexible deployment models • Integrates with Cloud providers services or runs standalone (on prem or cloud) • What came before and now: Heroku/PaaS/IAAS/EC2, Docker, Docker Swarm, Mesos/Marathon, Nomad, ECS, EKS, etc. K8s is the current mindshare champ.
  • 27. Business case: Winning the race Why we want to do it? Why it is important!
  • 28. Accelerate DevOps Source, Forsgren PhD, Nicole. Jez Humble, Gene Kim, Accelerate . IT Revolution Press. Kindle Edition.
  • 29. Acceleration in Practice • Make customers happy • Deliver more • Less Burnout • Grow the value of the company • Make more money
  • 30. Organizational performance • High performers 2x the rate will exceed organizational performance goals as low performers: • 2x profitability • 2x productivity • 2x market share • 2x number of customers
  • 31. Organizational performance Part II • High performers twice as likely to exceed non-commercial performance goals as low performers • 2x better quantity of products and services • 2x operating efficiency • 2x customer satisfaction • 2x quality of products/services • 2x achieving organizational/mission goals
  • 32. Organizational performance Part III 50% increase in market capitalization compared to low performers!
  • 33. Software delivery performance• Deploy frequency, Lead time, mean time to restore (MTTR), and change fail percentage do well to predict overall software delivery performance • Improving software delivery performance improves tempo and stability • Software delivery performance improves organizational performance and quality/customer satisfaction • Deploy frequency is highly correlated with continuous delivery and use of version control best practices
  • 34. Software delivery performance II• Lead time is highly correlated with good version control and automated testing • MTTR is highly correlated with version control and monitoring • Software delivery performance is negatively correlated with deployment pain • Software delivery performance is correlated with organizational investment in DevOps
  • 35. Quality Source, Forsgren PhD, Nicole. Jez Humble, Gene Kim, Accelerate . IT Revolution Press. Kindle Edition. st amount of manual work across all practices - configuration m
  • 36. Culture • 5 factors most associated with burnout are negatively impacted by bad software delivery performance • Deployment pain and poor software delivery practices cause organizational burnout
  • 37. Improve culture by improving practices• Technical practices predict continuous delivery • Improve organizational culture, identity, job satisfaction, software delivery performance, less burnout, less deployment pain, and less time spent on rework! • High performers spend 50% less time remediating security issues than low performers
  • 38. Trunk based Development (like Github flow) • ​High performers have shortest integration times and branch lifetimes • Branch life and integration typically lasting hours or a day • Low performers have longest integration times and branch lifetimes • Branch life and integration typically lasting days or weeks
  • 39. Architecture • Loosely coupled, well-encapsulated architecture drives IT performance. • 2017 dataset biggest contributor to continuous delivery was loosely coupled, well-encapsulated architecture
  • 40. Lean Product Management Capabilities • Experimental approach to product development highly correlates with continuous delivery • Lean product development capabilities predict improvements in organizational culture like reduced burnout higher software delivery performance and overall organizational performance
  • 41. How we get there Rules of the road
  • 42. Accelerate DevOps • Continuous delivery • Architecture • Product and process • Lean Management and monitoring • Cultural
  • 43. Continuous delivery capabilities 1. Implement continuous delivery / continuous deployment 2. Version control all production artifacts 3. Automate your deployment pipeline 4. Implement continuous integration 5. Use trunk-based development methods (like Github flow instead of git flow) 6. Implement test automation 7. Shift left on security
  • 44. Product and Process Capabilities • Gather and implement customer feedback • Make the flow of work through the system visible • Work in small batches • Foster and enable team experimentation
  • 45. Culture capabilities • Support a generative culture • Encourage and support learning • Encourage collaboration • Make work as meaningful as possible • Support and encourage transformational leadership
  • 46. Architectural Capabilities to Accelerate • Use loosely coupled architecture • Release new services on demand without outages • Empower the team to select tools; trust team to pick the best tools
  • 47. Lean management and Monitoring Capabilities • Have a light weight change approval process • Monitor application and system KPIs to inform business decisions • Proactively check system health • Preemptively detect and mitigate problems • Improve process and work within WIP limits • Set up visible dashboards to monitor/communicate WIP, quality, applications and systems
  • 48. Example monitoring • Hygieia • Productivity dashboards • Jenkins dashboards • Runtime KPIs • Customer KPIs
  • 49. Lean Management • Process: Small Batches • Decompose into features that allow for rapid development • MVP - prototype with just enough features to proved business value or enable validated learning • Quickly gather customer requirements (A/B testing, customer satisfaction surveys, etc.) • Team experimentation • Lean Management: Change approval • Lean Management: Proactive notification • Lean Management: Monitoring and KPIs • Lean Management: WIP limits, visualizing work
  • 50. Companies with regulatory requirements or strict CCB Can focus on Continuous Delivery Continuous Deployment can be part of a workflow and Based on the Continuous Delivery
  • 51. Version control - SCM • GitOps - keeping application code, system configuration, application configuration, and scripts for automating build and configuration in version control. • Factors together predict IT performance • Key component of continuous delivery • Immutable infrastructure • GitOps - keeping system and application config in git (versioned) correlates high with delivery performance
  • 52. Deployment Automation • Deployment automation • Containers, config, immutable infrastructure • Comprehensive configuration management (automation scripts), continuous integration and continuous testing • Key metric of GitOps is how much diffs exists in system config from git to deploy
  • 53. Continuous Integration • Continuous integration • Relies on SCM and Deployment automation • Relies on automated tests • Unit • Integration • Acceptance
  • 54. Trunk-based development • Trunk-based development • Like GitHub Flow but shorter lived branches • Fewer active branches that never outlive a sprint • Branch-off master per feature, bug fix, etc. • More PRs more often • No code freezes; integration periods less than a day • Polar opposite of git flow
  • 55. Shift left on security • Integrating security into design and testing phases • Security reviews of applications, including the infosec team in design and demo process • Using pre-approved security libraries and packages, and testing security features as a part of automated testing suite
  • 56. Continuous delivery • The ability to deliver • Build quality in • Work in small batches • Automate repetitive tasks including testing & deployments • Pursue continuous improvement • Ownership • Comprehensive configuration management • Continuous integration • Continuous testing You can’t skip steps. There is investment up front. Today’s speed up can be tomorrows painted yourself In a corner.
  • 57. Knowing the road Best practices applied
  • 58. Prefer Microservices… • Monoliths can speed up MVP and prototypes but at a cost • Monoliths make make CI/CD slower? • Monoliths make Automated tests suites harder to build and they are needed for CI/CD • Smaller Monoliths and SOA is a move in the right direction, but monoliths should be considered technical debt
  • 59. Prefer Microservices • Refactoring to Microservices is a journey • Know when to employ Microservices • Fits the CI/CD well • Fits small batch well • How Micro can mean different things as you get better at Microservices • Why today's micro could be tomorrows Monolith? • Adoption is a Journey
  • 60. Embrace Observability from the start • Log aggregation • Time series data base • Log all KPIs for clusters • Log all KPIs for applications and services • Alerting • Know when and how to employ distributed tracing • Distributed/Trace logging
  • 61. What is a PR? And how to ensure quality with it • A PR is a pull-request • PR gives other developers a chance to review code before it committed to master • PR via small batch (why small? JIRA story or even a task or two) • With GitHub and WebHooks you can block PRs from merging • Code coverage met, build works, unit tests run, other checks via Jenkins • Review and approved by at least two people
  • 62. Tests to create: TDD • Unit tests • Perf testing JMH • Functional tests • At the HTTP layer • At the Spring Boot layer • Acceptance tests • Smoke integration tests • Full integration tests • Synthetic testing • Code Coverage (sonarqube) • Security/Vulnerability dependency license checks • Aqua, Fortify • Full integration perf testing
  • 63. CI/CD to enforce quality • CI/CD • Deploy often (daily or more) • Test often (after every checkin run all automated tests) • Block PRs from merging until they pass tests • Block PRs until they are reviewed • Block PRs until they reach a certain code coverage
  • 64. Testing is a MUST! • You can't do CI/CD without automated testing • Testing allows you to move quickly with confidence
  • 65. Embrace small batch work • Goal of three PRs per week • Goal of one to two tasks from JIRA per PR • Use JIRA # in commits and PR comments • Break stories and features up into tasks • Check in interim stories • Use feature flags if it is hard to break up a feature or story
  • 66. Automated deployment • Merging into master triggers a deploy to integration and sends a Team message • Approval from Product Manager pushes code to Prod or Demo • Checking into main branch from PR • Artifacts and scripts for deployment checked into git and should not be modified • Puts code staging area to be checked by Product Manager • into containers and deploys to cluster (some ephemeral some not) • Once checked by Infosec and Product Manager: Canary Deploys to 3 to 5% of traffic and is monitored (end goal) • Then more and more as it is monitored and is ok
  • 67. Using docker, helm, Kubernetes • Uber dev tools • Persistent cluster set up • Helm install Kubernetes • Easy to integrate locally • Docker, docker-deploy, helm, etc. • Local integration possible and repeatable
  • 69. The race is won Conclusion
  • 70. Transformation is a business imperative• You can’t afford not to transform • Transformation requires a deep understanding of practices • Having a team called DevOps is not doing DevOps per se • Culture of DevOps, Agility, Lean, MVP, etc. is a clear win • There are guides, books, practices, and information
  • 71. Read Accelerate by Forsgren PhD, Nicole. Jez Humble, Gene Kim. Also read The Loop Approach: How to Transform your organization from The inside out! By Sebastian Klein and Ben Hughes Also read Cloud Native DevOps with Kubernetes by John Arundel and Justin Domingus

Editor's Notes

  • #6: Author of best-selling agile development book, early adopter of TDD, DevOps, Agile, etc. Highest leadership scores of any senior director in a 2,000 person org (happiest, most productive team). Highest performing team in a 1,000+ person group: Jenkins pipelines, Event Hub/EEL, High-code coverage, PR process, Trunk based git like GitHub flow, full automation, etc. Two awards from CIO at fortune 500, amazing results (G.O.A.T and Engineering Excellence) Amazing results finishing projects deemed impossible under tight deadlines. Grew team from 12 to 50+, Talent Magnet due to culture of excellence Written open source software used by millions Early adopter and proponent of MicroServices and streaming high-speed streaming, 12 factor deployment, container orchestration, in-memory compute and uService architecture Speaker at conferences on microservice development, a Java Champion (chosen from 10,000,000 Java Developers), parsers, distributed data grids, books, articles, etc. Mentoring, consulting, papers, blogs, specifications, JSRs for distributed compute, streaming Worked on Vert.x, QBit, Reakt, Groovy, Boon, etc. Rick Hightower Rick consults and does contract development for high-speed computing, Java-based uServices, Apache Spark, Apache Kafka, and Apache Cassandra. He also writes about microservice development and reactive streaming. Rick is a frequent speaker regarding high-speed, reactive microservice development and has spoken recently at JavaOne as well at FinTech at scale in SF. He specializes in high-speed, in-memory, non-blocking, microservices development which often includes Java EE, QBit, Reakt, Akka, Vert.x, Cassandra, Kafka, and cloud deployments. He has architected and implemented 100 million-users, in-memory content preference engines using Java reactive, streaming, and actor-based system as well as architected and implemented OAuth rate limiter (API gateway) for streaming music service to rate limit all backend services per partner/vendor/mobile app. Rick also contributed to the reference implementations enterprise caches as well as being a member of several spec. committees (JSR-347, JSR-107, etc.). He also is the author of the Boon JSON parser and parsing utilities which ships with Groovy.
  • #10: Enterprise Applications flashback While it is true Enterprise Applications are often built with a three tier architecture: backend code, database code and a GUI written in HTML/JavaScript. This has more to do with the world changing than an active choice. The real drivers for Microservices Architecture are cloud/virtualization/OS containerization, EC2, proliferation of mobile devices, cheaper memory, more virtualization, more cores, SSD, trend towards fatter clients, 10 GBE, 100 GBE, etc. The big enterprise web app is becoming obsolete to a certain extent at least for large applications. It is not like we one day came up with a better idea, and then one day we were like hey what if we could make our code more modular. The ground changed under our collective feet. The way we build, deploy, and consume has changed. Hardware evolved. Virtualization evolved. Containerization happened. Cloud computing became a real thing, and so compelling that it is hard to ignore. The smart phone / tablet / mobile revolution happened. Microservice is the response to these external events. Microservices and NoSQL are two trends that are more focused on how to address software development where deployments are increasingly cloud based and clients are increasingly mobile based. Just like you can’t compare client / server development of the mid-90s to mainframe development from the 70s, you can’t compare enterprise applications from 2001 to microservice development targeting mobile and web clients and other microservices in 2015. The world changes. We adjust. Microservice trend is course correction not a new religion. History of Enterprise Applications Remember 1990s, the reason why Enterprise Applications are written with three tiers was was to avoid DLL hell, and the monolith. We just did it with the tools available at the time. Back in the day, we used to build apps that were two tiered. You had to actually go to each users machine and help them install the app. There was a damn good chance they downloaded some shareware that installed a DLL that screwed up the install, and you were in hell. It was not like we were, “Hey James!” .. “What Martin?” “Do you want to build a huge monolith?” “Sure Martin!”. We tried Applets but Java GUI development back then sucked (1999). I don't think it sucks so bad now, but it lost its window of opportunity for adoption. Then we were left with HTML/JavaScript clients and forcing everyone to use the same browser in the corporation at least for the corporate apps. I worked at many corporations (2003) that banned JavaScript due to incompatibilities of browsers. You were left with screen painting with HTML. It was a like a colorful green screen of yesteryear, but way slower, but pretty. There are many reasons why this style of “Enterprise Development” does not work in the cloud and for mobile devices. The server-side applications no longer need to handle HTTP requests, get data from a database and execute all domain logic, and draw pretty pictures in HTML. Much pain, and great expense has been incurred trying get this three tier architecture to scale in the cloud for various devices written in a polyglot of languages. Microservices exists because mobile, cloud, cheaper RAM, cheaper disks, and improved virtualization. It is really just taking the world where it is. It is not revolutionary at all. Server components, EAR files and WAR files.. may they rest in peace If you have lived through COM, DCOM, CORBA, EJBs, OSGi, J2EE, SOAP, SOA, DCE, etc. then you know the idea of services and components is not a new thing, but they are a date expired concept for the most part. One issue with enterprise components is they assume the use of hardware servers which are large monoliths and you want to run a lot of things on the same server. That is why we have WAR files and EAR files, and all sorts of nifty components and archives. Well turns out in 2015 (and less so in 2019), that makes no sense. Operating systems and servers are ephemeral, virtualized resources and can be shipped like a component. We have EC2 images AMIs, OpenStack, Vagrant and Docker. The world changed. Move on. Microservices just recognize this trend so you are not developing like you did when the hardware, cloud orchestration, multi-cores, and virtualization was not there. You did not develop code in the 90s with punch cards did you? So don’t use an EAR file or a WAR file in 2015. Now you can run a JVM in a Docker image which is just a process pretending to be an OS running in an OS that is running in the cloud which is running inside of a virtual machine which is running in Linux server that you don’t own that you share with people who you don’t know. Got a busy season? Well then, spin up 100 more server instances for a few weeks or hours. This is why you run Java microservices as standalone processes and not running inside of a Java EE container. The Java EE container is no longer needed because servers are not giant refrigerator boxes that you order from Sun and wait three months for (circa 2000). Don’t fight classpath, classloader hell of Java EE. Hell your whole damn OS is now an ephemeral container (Docker). Deliver an image with all the libs you need, don’t deploy to a Java EE server which has to be versioned and configured. You are only running one service in it anyway. Turns out you don’t have five war files running in the same Java EE container since oh about 2007. Let it go. If you are deploying a WAR file to a Java EE container then you are probably not doing microservice development. If you have more than one WAR file in the container or an EAR file, then you are definitely not doing microservice development. If you are deploying your service as an AMI or docker container and your microservice has a main method, then you might be writing a microservice. Microservices architectures opt to break software not into components but into reusable, independently release-able services which run as one or more processes. Application and other services communicate with each other. So where we might have used a server side component, we use a microservice running in independent processes. Where we might have had WAR files or EAR files now we have a Docker container or a Amazon AMI that has the entire app preloaded and configure with exactly the libraries it needs (Java and otherwise). JSON, HTTP, WebSocket … NO WSDL! Now you just have to document the Microservices HTTP/JSON interface so other developers can call into it. We could say REST, and certainly you can use concepts from REST, but hey HTTP calls are enough to be considered a Microservice. Keep this in mind: No XML. No SOAP. No WSDL. No WADL. JSON! Ok you can add some meta data and document how to talk to your service, but the idea is the docs should be documented with curl. If you are only using SOAP or XML then you are not producing a microservice. JSON is a must. Documents should sound more like: I give you this request with these headers, params and JSON body and you respond with this JSON. Keep it simple. You can provide things in addition to JSON, but JSON is the minimum requirement. If you are not delivering up JSON and consuming JSON over HTTP or HTTP WebSocket then what you wrote is not probably not a microservice.
  • #13: Introduction To Microservices Microservice architecture is a method of developing software systems. Its focus is building small, reusable, scalable services. Applying Microservices becomes very important when you have to create services for polyglot devices: wearables, Internet of Things (IOT), mobile, desktop, and web. The trend towards providing services for rich, native mobile application and web applications started the trend towards Microservices adoption. This is one reason why microservices lean heavily on web technologies like HTTP/REST/WebSocket with JSON,Message Pack, and their ilk. The web technologies provide a low barrier to entry and least common denominator to communication. The closest to a standard definition of microservices is Microservices by James Lewis and Martin Fowler. … Continuous delivery: The microservices architectural approach is to create smaller services that are focused on a small business domain or crosscutting concern. Microservices adopt the Unix single purpose utility approach to service development. They are small so they can be released more often and are written to be malleable. They are easier to write. They are easier to change. Microservices go hand in hand with continuous integration and continuous delivery. The services are independent enough not to need a gigantic release train to release improvements or new features. In the Java world, this means you will be using other microservice like Jenkins to provide frequent releases.
  • #14: Key ingredients to microservices architecture are: independently deployable, small, domain-driven services communication through a well-defined wire protocol usually JSON over HTTP (curl-able interfaces) well defined interfaces and minimal functionality avoiding cascading failures and synchronous calls - reactive designing for failure
  • #15: This comes up a lot so let's address this now. It is very common for some to confuse Service-Oriented Architecture (SOA) and Microservice Architecture. In a sense, SOA and Microservice Architecture are related in some goals and purposes. Microservices is a refocus and refinement of some of the original goals of SOA to meet the demands of a polyglot device environment that can scale and support continuous deployments in a cloud / third generation virtualization environment. Since SOA was later muddled with BPEL, ESBs, SOAP, WSDL, and their ilk, it is easier to drop the SOA moniker and just focus on the parts that worked well. Keep the parts that work. Get rid of the rest. The focus on Microservices Architecture is web technologies to provide scalability, modular, domain-drive, small, and continuously deployable cloud-based services. Microservices Architecture is taking what perhaps started out as SOA and applying lessons learned as well as pressure to support polyglot devices, deploy more rapidly and the architecture liquidity that cloud computing and virtualization/containerization provide. You mix all that together and you can see where Microservices Architecture started. Microservices Architecture is in general less vendor driven than SOA and more needs driven by demands of application development and current cloud infrastructure. For more thoughts on SOA vs. Microservices read Microservices Architecture.
  • #16: Microservices Architecture is taking what perhaps started out as SOA and applying lessons learned as well as pressure to support polyglot devices, deploy more rapidly and the architecture liquidity that cloud computing and virtualization/containerization provide. You mix all that together and you can see where Microservices Architecture started. Microservices Architecture is in general less vendor driven than SOA and more needs driven by demands of application development and current cloud infrastructure.
  • #18: Cope with failure Microservices are designed to cope with failure. Since microservices tend to call each other, a downstream service that fails should not block upstream services and clients. Synchronous communication is avoided to avoid cascading failures. Thus Microservices tend to embrace async calls, streams, queues and actor systems. To handle failure, it is easier to embrace Queue theory so you can detect failure and provide alternatives or just fail gracefully without blocking clients. The ability to react to failure is a key characteristic of Microservices. In order to learn about downstream failure or learn about other functioning nodes and implement some sort of circuit breaker, one needs Service Discovery. Tools like consul, etcd and SkyDNSare perfect for Service Discovery. Adopting Microservices is not a free lunch. Steps to mitigate inherent complexity include distributed logging and MDC, microservices monitoring and stats, and reactive programming to coordinate async calls. The reactive call coordination would encompass what to do if there is a failure and what to do if a downstream service does not fail, but just times out or worse hangs.
  • #19: User Experience and Microservices Monitoring With Microservices which are released more often, you can try new features and see how they impact user usage patterns. With this feedback, you can improve your application. It is not uncommon to employ A/B testing and multi-variant testing to try out new combinations of features. Monitoring is more than just watching for failure. With big data, data science, and microservices, monitoring microservices runtime stats is required to know your application users. You want to know what your users like and dislike and react. Debugging and Microservices Monitoring Runtime statistics and metrics are critical for distributed systems. Since microservices architecture use a lot of remote calls. Monitoring microservices metrics can include request per second, available memory, #threads, #connections, failed authentication, expired tokens, etc. These parameters are important for understanding and debugging your code. Working with distributed systems is hard. Working with distributed systems without reactive monitoring is crazy. Reactive monitoring allows you to react to failure conditions and ramp of services for higher loads. Circuit Breaker and Microservices Monitoring You can employ the Circuit Breaker pattern to prevent a catastrophic cascade, and reactive microservices monitoring can be the trigger. Downstream services can be registered in a service discovery so that you can mark nodes as unhealthy as well react by reroute in the case of outages. The reaction can be serving up a deprecated version of the data or service, but the key is to avoid cascading failure. You don't want your services falling over like dominoes. Cloud Orchestration and Microservices Monitoring Reactive microservices monitoring would enable you to detect heavy load, and spin up new instances with the cloud orchestration platform of your choice (EC2, CloudStack, OpenStack, Rackspace, boto, etc.).
  • #21: Continuously deployable services The focus on Microservices is a focus on business capability, and a refocus on object oriented programming roots and organizing code around business domains with data and business rules co-located in the same process or set of processes. The focus is on breaking up applications into small reusable services which might be useful to other services or other applications. The services can be deployed independently. This allows each of these services to be tweaked, and then redeployed independently. This is where the "micro" part of microservices comes into play. The services are small and independent. This is where microservices have been compared to Unix philosophy, they provide services that handle requests and give responses. Ken Thompson, Unix creator, said Unix has a philosophy of one tool, one job. The Unix philosophy emphasizes building short, simple, clear, modular, and extendable code that can be easily maintained and repurposed by developers other than its creators.
  • #29: Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #30: Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #31: High performers are twice as likely to exceed organizational performance goals as low performers: profitability, productivity, market share, number of customers. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #32: High performers are twice as likely to exceed noncommercial performance goals as low performers: quantity of products/ services, operating efficiency, customer satisfaction, quality of products/services, achieving organizational/mission goals. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #33: In a follow-up survey to the initial 2014 data collection effort, we gathered stock ticker data and performed additional analysis on responses from just over 1,000 respondents across 355 companies who volunteered the organization they worked for. For those who worked for publicly traded companies, we found the following (this analysis was not replicated in later years because our dataset was not large enough): ​–​High performers had 50% higher market capitalization growth over three years compared to low performers. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #34: The four measures of software delivery performance (deploy frequency, lead time, mean time to restore, change fail percentage) are good classifiers for the software delivery performance profile. The groups we identified—high, medium, and low performers—are all significantly different across all four measures each year. Our analysis of high, medium, and low performers provides evidence that there are no trade-offs between improving performance and achieving higher levels of tempo and stability: they move in tandem. Software delivery performance predicts organizational performance and noncommercial performance. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #35: Lead time is highly correlated with version control and automated testing. MTTR is highly correlated with version control and monitoring. Software delivery performance is correlated with organizational investment in DevOps. Software delivery performance is negatively correlated with deployment pain. The more painful code deployments are, the poorer the software delivery performance and culture. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #36: Unplanned work and rework: ​–​High performers reported spending 49% of their time on new work and 21% on unplanned work or rework. ​–​Low performers spend 38% of their time on new work and 27% on unplanned work or rework. ​–​There is evidence of the J-curve in our rework data. Medium performers spend more time on unplanned rework than low performers, with 32% of their time spent on unplanned work or rework. Manual work: ​–​High performers report the lowest amount of manual work across all practices (configuration management, testing, deployments, change approval process) at statistically significant levels. ​–​There is evidence of the J-curve again. Medium performers do more manual work than low performers when it comes to deployment and change approval processes, and these differences are statistically significant. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #37: BURNOUT AND DEPLOYMENT PAIN: Deployment pain is negatively correlated with software delivery performance and Westrum organizational culture. The five factors most highly correlated with burnout are Westrum organizational culture (negative), leaders (negative), organizational investment (negative), organizational performance (negative), and deployment pain (positive). Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #39: Trunk-based development: ​–​High performers have the shortest integration times and branch lifetimes, with branch life and integration typically lasting hours or a day. ​–​Low performers have the longest integration times and branch lifetimes, with branch life and integration typically lasting days or weeks. Technical practices predict continuous delivery, Westrum organizational culture, identity, job satisfaction, software delivery performance, less burnout, less deployment pain, and less time spent on rework. High performers spend 50% less time remediating security issues than low performers. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #40: A loosely coupled, well-encapsulated architecture drives IT performance. In the 2017 dataset, this was the biggest contributor to continuous delivery. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #41: LEAN PRODUCT MANAGEMENT CAPABILITIES The ability to take an experimental approach to product development is highly correlated with the technical practices that contribute to continuous delivery. Lean product development capabilities predict Westrum organizational culture, software delivery performance, organizational performance, and less burnout. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition. Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.
  • #46: Forsgren PhD, Nicole. Accelerate . IT Revolution Press. Kindle Edition.