Continuous delivery best practices

Continuous delivery best
practices
with a Case Study of a technology-driven media company
Petri Kallberg
Cloud Architect, Nordcloud
Nordcloud: European Footprint. Market leader in the Nordics.
Established operations
Expansion ongoing
www.nordcloud.com
2
CONTACT US
we'll get back to you as soon as possible
Leopoldstr. 23
5. OG
München,
Deutschland
[email protected]
/company/nordcloud-ltd
www.nordcloud.com
@NordcloudTweets
+49 152 31 92 06 51
www.nordcloud.com
3
Nordcloud
introduction
Nordcloud
Nordcloud is the cloud services
specialist based in Helsinki,
Stockholm, London, Munich, Oslo &
Copenhagen.
We are AWS Premier Consulting
partner proving cloud strategy
consultancy, migration services,
24x7 support, systems automation
and official AWS training.
www.nordcloud.com
4
Continuous delivery best practices
with a Case Study of a technology-driven media company
“Continuous Delivery (CD) is a software engineering
approach in which teams keep producing valuable software
in short cycles and ensure that the software can be reliably
released at any time.”
- Wikipedia
www.nordcloud.com
5
Continuous delivery best practices
with a Case Study of a technology-driven media company
Sanoma is a leading media group in the
Nordic countries with operations in over 10
European countries and yearly revenue of
2000M€.
www.nordcloud.com
6
Continuous delivery best practices
with a Case Study of a technology-driven media company
Starting point
• 
• 
• 
• 
Multiple independent products & teams
Varying level of build automation
No configuration management tools
Traditional “in-house” hosting, DIY-mentality
Then IT was out-sourced …
www.nordcloud.com
7
Continuous delivery best practices
with a Case Study of a technology-driven media company
Build Automation is a must!
www.nordcloud.com
8
Continuous delivery best practices
with a Case Study of a technology-driven media company
Use SaaS vs. re-invent your own
if “vendor lock” becomes a problem solve it later
www.nordcloud.com
9
Continuous delivery best practices
with a Case Study of a technology-driven media company
www.nordcloud.com
10
Continuous delivery best practices
with a Case Study of a technology-driven media company
Infrastructure as a Code
www.nordcloud.com
11
Continuous delivery best practices
with a Case Study of a technology-driven media company
What goes into Cloudformation stack?
(and what is left outside of it)
Statefull, Slow to deploy,
Shared resources …
Stateless, Fast to deploy,
Utilized inside single stack …
www.nordcloud.com
12
Continuous delivery best practices
with a Case Study of a technology-driven media company
Who/What does configure your instances?
(and how it knows about the infrastructure)
• 
• 
• 
• 
• 
Auto scaling & launch configuration
AMI vs. Install
Parameters from cloudformation stack
to Chef via instance metadata.
Cookbooks for common build formats.
Cfn-hup will trigger re-config for
changes.
www.nordcloud.com
13
Continuous delivery best practices
with a Case Study of a technology-driven media company
Don’t Update – Rebuild It!
Current production
V10
www.nordcloud.com
14
Continuous delivery best practices
with a Case Study of a technology-driven media company
Don’t Update – Rebuild It!
Testing new production
V10
V20
www.nordcloud.com
15
Continuous delivery best practices
with a Case Study of a technology-driven media company
Don’t Update – Rebuild It!
Deploy new production
V10
V20
www.nordcloud.com
16
Continuous delivery best practices
with a Case Study of a technology-driven media company
Don’t Update – Rebuild It!
Discard old production
V10
V20
www.nordcloud.com
17
Continuous delivery best practices
with a Case Study of a technology-driven media company
“Thanks to new deployment process we can
deploy builds into production in the middle
of the day and have to sweat if it is going to work”
- Lead developer of the busiest website in Finland
www.nordcloud.com
18
Continuous delivery best practices
with a Case Study of a technology-driven media company
“But rebuilds are taking too long!
We need to build every commit and deploy every build!”
- Anonymous developer
www.nordcloud.com
19
Continuous delivery best practices
with a Case Study of a technology-driven media company
Cloudformation
Production vs. Development & Testing
• 
• 
Use same template for all
environments!
Customize with
• 
• 
• 
• 
• 
Parameters
Mappings
Conditions
Allow code deployment to development
using stack updates to avoid re-builds.
Enable/disable features by stack
update.
www.nordcloud.com
20
Continuous delivery best practices
with a Case Study of a technology-driven media company
“TODO” …
improvements and new features
• 
• 
• 
• 
Individual teams should be self sufficient
while maintaining centralized “sanity checks”.
Create AWS account for each search/product.
Connect via central account using VPC peering.
Manage Cloudformation stacks with Service Catalog.
Replace custom code with AWS services;
CodeDeploy, CodeCommit & CodePipeline
www.nordcloud.com
21
Thank You + Q&A
[email protected]
CONTACT US
we'll get back to you as soon as possible
Leopoldstr. 23
5. OG
München,
Deutschland
[email protected]
/company/nordcloud-ltd
www.nordcloud.com
@NordcloudTweets
+49 152 31 92 06 51
www.nordcloud.com
23