the microservice journey at scania connected services | anders lundsgård | ltg-39

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

Upload: lean-tribe

Post on 08-Jan-2017

175 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Microservices – Scaling the Business@ Scania Connected Services

Anders Lundsgård

@anderslundsgard

Södertälje - October 5, 2016

Page 2: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Scania Connected Services

~200.000 connected vehicles~80 engineers

Page 3: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Scaling the Business

We see a huge potential in expanding the business on

Scania Connected Data

WORK FASTER!!

Page 4: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Our software evolution

‘90sSpaghetti Code

‘00sGrowing monoliths

‘10sMicroservices era

Page 5: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

The reality today

Page 6: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

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: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

CODEIN PROD

PENDING CODE

NEWFEATURES

High focus on Limit Work In Progress

= INVENTORY

Page 8: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

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: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

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: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

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: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Deploy != Release

Business decision

Feature Team concern

Feature Team concern

Page 12: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Feature Toggle

Page 13: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Tilda 4 makes release to UK market

Page 14: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Zero Downtime

Page 15: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Visibility

Page 16: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

10.000+ unique portal users per month

Page 17: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39
Page 18: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39
Page 19: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39
Page 20: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Check-in frequency

Project: Scania Connected Services

Page 21: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Change Stop

Page 22: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

22

200301401404500

Page 23: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

23

200301401404500

Page 24: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

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: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Scania – A growing horse

Page 26: The Microservice journey at Scania Connected Services | Anders Lundsgård | LTG-39

Thank You!

Anders Lundsgård

@anderslundsgard