Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Holiday Extras AWS use case

Holiday Extras AWS use case

Case Study of Holiday Extras and how we use AWS. Presented at AWS Sofia Conference 2018.

http://www.techhuddle.com/aws-sofia-2018

Simon Wood

April 20, 2018
Tweet

More Decks by Simon Wood

Other Decks in Technology

Transcript

  1. 'use strict'; exports.invoke = (event, context, callback) => { const

    request = event.Records[0].cf.request const headers = request.headers const experimentA = 'loadCriticalCSSFirstTest=Control' const experimentB = 'loadCriticalCSSFirstTest=Variant' const experimentActionA = '/index.html' const experimentActionB = '/jira123.index.html' let experimentUri if (headers.cookie) { for (let i = 0; i < headers.cookie.length; i++) { if (headers.cookie[i].value.indexOf(experimentA) >= 0) { experimentUri = experimentActionA break } else if (headers.cookie[i].value.indexOf(experimentB) >= 0) { experimentUri = pathExperimentB break } } } if (!experimentUri) { if (Math.random() < 0.5) { experimentUri = experimentActionA } else { experimentUri = experimentActionB } } request.uri = experimentUri callback(null, request) }
  2. “We want to empower developers to repeatedly deploy fast and

    often at scale. Removing the need for IT Infrastructure setup to get code into production” Andy Britcliffe
  3. Node Toolkit • Authorisation • Caching • Context • Database

    • Data Platform • Debugging • Fixturing • Health Checking • Logging • Metrics • PubSub • Routing • RPC • Streaming to Storage