4. Disclaimer
The opinions expressed in this presentation
and on the following slides are solely those of
the presenter and not necessarily those of
Scania as a whole.
7. We at infra need to be an enabler for
developers. Enable automatic deployments
and roll-backs.
Creating tools/dashboards with relevant
KPI’s so that the developer can fast and
easily see the consequences of a deployment.
- Mattias Järnhäll, Infrastructure manager
2014.03.03 on Scania social network
8. in the early days…
DevOps movement
More features
quicker Stability
13. 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
19. 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
20. Deploy frequency
• Pre 2016
– Agile teams
•Continuous Integration
•12 deploys per year
• 2016
– Autonomous Teams
•Continuous Delivery
•30+ deploys per day
• Pre 2012
– Software projects
•2-3 in parallel
•3 deploys per year
Biggest enablers
1. Microservice architecture
2. Trust and courage from
management
Code review is your security gate. Not a QA or an ISec department.
Code review is your security gate. Not a QA or an ISec department.
Ops1: “Wait until Tuesdays CAB!”
Dev1: “You must start to code and version your stuff”
Dev2: “Use my repo. I’ll be contributing”
Ops1: “Wait until Tuesdays CAB!”
Dev1: “You must start to code and version your stuff”
Dev2: “Use my repo. I’ll be contributing”
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
Code review is your security gate. Not a QA or an ISec department.
QA is not Quality Assurance. It is Quality Assistance.
”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
About 4 times more check-ins with the microservice architecture.
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.
Visibility is key to make everyone think of what happens and what could be improved.
The wide diversity of skills required to build today’s applications means collaborative teamwork, not dysfunctional silos.
These autonomous teams speaks with http status codes (via APIs).