microservices - scaling the business at scania cs - lean tribe södertälje - 2016-10-05

26
Microservices – Scaling the Business @ Scania Connected Services Anders Lundsgård @anderslundsg ard Södertälje - October 5, 2016

Upload: anders-lundsgard

Post on 08-Jan-2017

96 views

Category:

Presentations & Public Speaking


3 download

TRANSCRIPT

Page 1: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

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

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

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

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

The reality today

Page 6: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

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

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

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

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

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

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

Feature Toggle

Page 13: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

Tilda 4 makes release to UK market

Page 14: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

Zero Downtime

Page 15: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

Visibility

Page 16: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

10.000+ unique portal users per month

Page 17: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05
Page 18: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05
Page 19: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05
Page 20: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

Check-in frequency

Project: Scania Connected Services

Page 21: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

Change Stop

Page 22: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

22

200301401404500

Page 23: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

23

200301401404500

Page 24: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

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

Scania – A growing horse

Page 26: Microservices - Scaling the business at Scania CS - Lean Tribe Södertälje - 2016-10-05

Thank You!

Anders Lundsgård

@anderslundsgard