DevOps Transformation
Metrics and Microservices
ANDERS LUNDSGÅRD, SENIOR ENGINEER
JONATAN MOSSBERG, PRODUCT OWNER
• To earn money by helping our customers
increasing their profitability!
• Scania’s vision sets the direction:
“Be recognised as a true partnership driven
leader in the shift towards a sustainable
transport system.”
Why do we go to work?
• Connected Services & Solutions:
“Ensure that the transport company is supported with services and solutions
enabled by connectivity, in order for them to become more efficient, profitable and
sustainable.”
− Create new services and solutions.
− Evolve and maintain existing services and solutions.
AUTONOMOUSCONNECTED ELECTRIFIED
• 250.000+ connected vehicles
• 200+ employees
• 15+ years of age
Lean service development
HOW CAN THIS HELP US ACHIEVING OUR GOALS?
FLOW efficiency
Maximize LEARNING from each hypothesis until it’s either
invalidated or contributes to high perceived customer value
and do it as fast and cheap as possible.
• ...by empowering all available teams with…
− …the knowledge about our customers’ business and…
− …the tools and resources needed for experimentation and…
− …the knowledge about how to validate hypothesis with low risk and cost.
Maximize LEARNING…
DevOps
Deploy frequency
• 2015
– Agile teams
• 12 deploys per year
• 2016
– Autonomous Teams
• Continuous Delivery
• 30+ deploys per day
• 2011
– Software projects
• 2-3 in parallel
• 3 deploys per year
1. Microservice architecture
2. Trust and courage from
management
Continuous Integration
The foundation: Continuous Integration
Version everything Automation
Claim over Blame
Trunk based
development
Networking Storage
OS
Integration
Service
1
Service
2 Service
5
Service
7
Service
8
Service
10
Service
12
Service
14
Service
3
Service
4
Service
6
Service
9
Service
11
Service
15
Middleware
Service
13
User Interface
Security Monitoring
Monolith
Even with Continuous Integration,
fast delivery was hard with 50+
engineers and a large codebase.
All Infra
needs
User Interface
Service
1
Service
2 Service
5
Service
7
Service
8
Service
10
Service
12
Service
14
Service
3
Service
4
Service
6
Service
9
Service
11
Service
15
Service
13
All Infra
needs
All Infra
needs
All Infra
needs
All Infra
needs
All Infra
needs
All Infra
needs
All Infra
needs
Microservices
Why Microservices?
1. Autonomous teams
2. Build, Test, Deploy SPEED
Version Control
Pull & Push several
times a day
Continuous
Integration
Server Target Servers
(Dev, Staging, Prod)
Version Everything
- Code
- Tests
- Configuration
- Database
- Infrastructure
10 minutes
Continuous Delivery is mandatory
Continuous Deployment is optional
Deploy
Server
Deploy != Release
Feature Toggle
Tilda 4 makes release to UK market
Zero Downtime
Application
Development
Delivery
Engineering
Infrastructure
Provisioning
Feature TeamsDeveloper Teams
Delivery Engineering
DevOps
Corporate IT
Corporate IT
Connected Services
Shared responsibility
Traditional silos
Application
Development
Delivery
Engineering
Infrastructure
Provisioning
Feature Teams
Delivery Engineering
Corporate IT
Connected Services
Shared responsibility
Manage their own
CI/CD pipeline
Infrastructure as Code
for their
Microservices
AWS accounting
IP-plan
Corporate Security
Cloud education
Common tooling
Common infra templates
DevOps is good but not the end…
DevOps now also start to include the Business!!
• We believe in fully accountable cross functional BizDevOps teams with power
and mandate to maintain and evolve their own services.
• By having a common vision and full transparency between the teams we make
sure all teams go in the same direction.
• By allowing slack and by stimulating cross team experimentation new services
will evolve from the existing ones.
BizDevOps @ Scania
=+ +
• Subscription monitoring: An example of a tool developed by a BizDevOps-team!
Team Scania Tachograph Services
24
25
Scania Connected Services reorganizing
to cross-functional BizDevOps-teams
Thank You!
Anders Lundsgård
@anderslundsgard
Jonatan Mossberg
@kneulen

BizDevOps Transformation, Metrics and Microservices at Scania, June 2017 in London

Editor's Notes

  • #2 DevOps – Is this enough?
  • #3 Vision important to make sure everyone have a common goal!
  • #4 Our contribution to the Scania portfolio is connected services & solutions! We must both create new and maintain already existing services and have done so for more than 15 years now. Disclaimer – Don’t blaim Scania, blaim us!
  • #5 Our strategy is to take the lean principles from our world leading process for assembling hardware components into a truck into service development. Lean is about maximize flow efficiency by maximize customer value and eliminating waste.
  • #7 High invested ideas are often hard to dismiss. Teams must strive for learning and failing fast! To succeed in a scaled agile environment learning between the teams is crucial! Software is the only tool available enabling both qualitive and quantitative experimentation!
  • #8 About 5 years ago this vision was created to visualize an environment in which continuous and fast experimentation is easy!
  • #9 About 4 times more check-ins with the microservice architecture.
  • #10 High focus on Continuous Integration: Versioning all assets Trunk-based development Automated Tests Claim > Blaim …but we were unable to effectively scale and do CI + CD
  • #12 ”It’s a trade from code complexity to operational complexity” Martin Fowler: https://www.youtube.com/watch?v=wgdBVIX9ifA http://martinfowler.com/articles/microservices.html Adrian Cockcroft: https://www.youtube.com/watch?v=nMTaS07i3jk&feature=youtu.be Gene Keen, Randy Shoup http://youtu.be/MRa21icSIQk 43:00 Randy Shoup: http://gotocon.com/dl/goto-cph-sept-2014/slides/DeanWampler_and_EvaAndreasson_and_KevlinHenney_and_RandyShoup_WheresCaptainKirkChartingACourseThroughEnterpriseArchitecturePartI.pdf
  • #13 Code review is your security gate. Not a QA or an ISec department.
  • #18 With zero downtime deployments engineers can push code to Prod on a daily basis. We have overcome our biggest challenges which have been relational database deployments and automation of our on-prem load balancer. A huge advantage is the fact that developers pushes the code themselves and will thereby be present when the code goes live.
  • #21 What’s the value of DevOps without the business perspective?
  • #22 To benefit from the capability that Continuous Delivery of software enables we must use it for experimentation and validating our business hypothesis.
  • #23 Every team must have the knowledge to learn and fail fast. Trust in the teams from the management is a key!
  • #24 Example of a BizDevOps team realizing that sales is right now a bigger obstacle then missing features.
  • #25 Scania Connected Services is right now reorganizing to achieve cross functional BizDevOps-teams! By connecting Business and Innovation with DevOps practices we will maximize the probability for delivering the highest perceived customer value on the market! The wide diversity of skills required to build today’s applications means collaborative teamwork, not dysfunctional silos.
  • #26 Scania Connected Services is right now reorganizing to achieve cross functional BizDevOps-teams! By connecting Business and Innovation with DevOps practices we will maximize the probability for delivering the highest perceived customer value on the market! The wide diversity of skills required to build today’s applications means collaborative teamwork, not dysfunctional silos.