Date post: | 08-Jan-2017 |
Category: |
Technology |
Upload: | lean-tribe |
View: | 175 times |
Download: | 0 times |
Microservices – Scaling the Business@ Scania Connected Services
Anders Lundsgård
@anderslundsgard
Södertälje - October 5, 2016
Scania Connected Services
~200.000 connected vehicles~80 engineers
Scaling the Business
We see a huge potential in expanding the business on
Scania Connected Data
WORK FASTER!!
Our software evolution
‘90sSpaghetti Code
‘00sGrowing monoliths
‘10sMicroservices era
The reality today
Remembering the past…Continuous Integration• Version everything• Automate build, tests, deploy• Claim > Blame• Trunk based development
The very last manual deployment of the Monolith
CODEIN PROD
PENDING CODE
NEWFEATURES
High focus on Limit Work In Progress
= INVENTORY
GUI
Database
Infra
Business Logic
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
Even with Continuous Integration, fast delivery is hard with 50+
engineers and a large codebase.
Monolith
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
GUI
Database
Infra
Business Logic
Why Microservices?1. Autonomous teams
2. Build, Test, Deploy SPEED
Microservices
0. Business: “WORK FASTER”
Version Control
Pull & Push several times a day
Continuous Integration
Server Target Servers(Dev, Staging, Prod)
Version Everything- Code- Tests- Configuration- Database- Infrastructure
15 minutes
Automation – Deployment Pipeline
DeployServer
CI D
Deploy != Release
Business decision
Feature Team concern
Feature Team concern
Feature Toggle
Tilda 4 makes release to UK market
Zero Downtime
Visibility
10.000+ unique portal users per month
Check-in frequency
Project: Scania Connected Services
Change Stop
22
200301401404500
23
200301401404500
Challenges
Separation of duties• Support, Market, Dev, Ops• Extend our DevOps movement to include the Business
Breaking down the Monolith…• …without practicing to many ‘Anti-patterns’
Testing Microservices• Contract tests• Monitoring > End to end tests• Test in Prod
Cloud abilities
Scania – A growing horse
Thank You!
Anders Lundsgård
@anderslundsgard