Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05
-
Upload
anders-lundsgard -
Category
Presentations & Public Speaking
-
view
96 -
download
3
Transcript of Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05
![Page 1: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/1.jpg)
Microservices – Scaling the Business@ Scania Connected Services
Anders Lundsgård
@anderslundsgard
Södertälje - October 5, 2016
![Page 2: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/2.jpg)
Scania Connected Services
~200.000 connected vehicles~80 engineers
![Page 3: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/3.jpg)
Scaling the Business
We see a huge potential in expanding the business on
Scania Connected Data
WORK FASTER!!
![Page 4: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/4.jpg)
Our software evolution
‘90sSpaghetti Code
‘00sGrowing monoliths
‘10sMicroservices era
![Page 5: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/5.jpg)
The reality today
![Page 6: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/6.jpg)
Remembering the past…Continuous Integration• Version everything• Automate build, tests, deploy• Claim > Blame• Trunk based development
The very last manual deployment of the Monolith
![Page 7: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/7.jpg)
CODEIN PROD
PENDING CODE
NEWFEATURES
High focus on Limit Work In Progress
= INVENTORY
![Page 8: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/8.jpg)
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
![Page 9: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/9.jpg)
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”
![Page 10: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/10.jpg)
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
![Page 11: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/11.jpg)
Deploy != Release
Business decision
Feature Team concern
Feature Team concern
![Page 12: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/12.jpg)
Feature Toggle
![Page 13: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/13.jpg)
Tilda 4 makes release to UK market
![Page 14: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/14.jpg)
Zero Downtime
![Page 15: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/15.jpg)
Visibility
![Page 16: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/16.jpg)
10.000+ unique portal users per month
![Page 17: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/17.jpg)
![Page 18: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/18.jpg)
![Page 19: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/19.jpg)
![Page 20: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/20.jpg)
Check-in frequency
Project: Scania Connected Services
![Page 21: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/21.jpg)
Change Stop
![Page 22: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/22.jpg)
22
200301401404500
![Page 23: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/23.jpg)
23
200301401404500
![Page 24: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/24.jpg)
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
![Page 25: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/25.jpg)
Scania – A growing horse
![Page 26: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05](https://reader030.fdocuments.in/reader030/viewer/2022032613/58714e621a28ab55588b7441/html5/thumbnails/26.jpg)
Thank You!
Anders Lundsgård
@anderslundsgard