Agenda:

Introduction:

  1. What is A/B testing?
  2. Initial design
  3. Frontend AWS infrastructure

A/B testing with AWS Lambda@edge :

  1. Architecture
  2. Implementation
  3. Performance Impact
  4. Costs

TL;DR:
If you want to implement an A/B testing solution, which supports SSR and does not impact CloudFront cache, using Viewer Request Lambda@edge intercept a request before it arrives to CloudFront and add a cookie with a selected variant to the Request Header. On server based on that cookie render correct HTML, then attach Set-Cookie header to the response with value of selected variant to save it in user browser.

TL;But I can read:
If you already know about A/B testing, CloudFront and Lamba@edge, then go…

przemkow

Born in Poland, living in Italy Software Engineer mostly focused on Frontend technologies. Tech Lead Frontend Developer @ TUI Musement. www.przemkow.dev

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store