23
Continuous delivery best practices with a Case Study of a technology-driven media company Petri Kallberg Cloud Architect, Nordcloud

Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

Continuous delivery best practices with a Case Study of a technology-driven media company

Petri Kallberg Cloud Architect, Nordcloud

Page 2: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 2

Established operations Expansion ongoing

Nordcloud: European Footprint. Market leader in the Nordics.

Page 3: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 3

CONTACT US we'll get back to you as soon as possible

Leopoldstr. 23 5. OG München, Deutschland

[email protected]

www.nordcloud.com

/company/nordcloud-ltd

@NordcloudTweets

+49 152 31 92 06 51

Page 4: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 4

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.

Page 5: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 5

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

Page 6: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 6

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€.

Page 7: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 7

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 …

Page 8: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 8

Build Automation is a must!

Continuous delivery best practices with a Case Study of a technology-driven media company

Page 9: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 9

Use SaaS vs. re-invent your own if “vendor lock” becomes a problem solve it later

Continuous delivery best practices with a Case Study of a technology-driven media company

Page 10: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 10

Continuous delivery best practices with a Case Study of a technology-driven media company

Page 11: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 11

Infrastructure as a Code

Continuous delivery best practices with a Case Study of a technology-driven media company

Page 12: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 12

What goes into Cloudformation stack? (and what is left outside of it)

Continuous delivery best practices with a Case Study of a technology-driven media company

Statefull, Slow to deploy, Shared resources …

Stateless, Fast to deploy, Utilized inside single stack …

Page 13: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 13

Who/What does configure your instances? (and how it knows about the infrastructure)

Continuous delivery best practices with a Case Study of a technology-driven media company

•  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.

Page 14: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 14

Don’t Update – Rebuild It! Current production

Continuous delivery best practices with a Case Study of a technology-driven media company

V10

Page 15: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 15

Don’t Update – Rebuild It! Testing new production

Continuous delivery best practices with a Case Study of a technology-driven media company

V10

V20

Page 16: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 16

Don’t Update – Rebuild It! Deploy new production

Continuous delivery best practices with a Case Study of a technology-driven media company

V10

V20

Page 17: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 17

Don’t Update – Rebuild It! Discard old production

Continuous delivery best practices with a Case Study of a technology-driven media company

V10

V20

Page 18: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 18

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

Page 19: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 19

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

Page 20: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 20

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.

Page 21: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 21

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

Page 22: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

Thank You + Q&A [email protected]

Page 23: Continuous delivery best practicesaws-de-media.s3.amazonaws.com/images/Partner Web Day/Nordclo… · Continuous delivery best practices with a Case Study of a technology-driven media

www.nordcloud.com 23

CONTACT US we'll get back to you as soon as possible

Leopoldstr. 23 5. OG München, Deutschland

[email protected]

www.nordcloud.com

/company/nordcloud-ltd

@NordcloudTweets

+49 152 31 92 06 51