Flying in the cloud

Flying in the cloud

82c8dbce9b531b588a6e920eddad857e?s=128

Fabrizio Fortunato

May 09, 2019
Tweet

Transcript

  1. Flying in the cloud Fabrizio Fortunato - Ryanair Labs

  2. ME Head of Frontend at Ryanair Labs @izifortune https://izifortune.com

  3. None
  4. On premise overview

  5. None
  6. None
  7. A serverless website What is a serverless website? Why a

    serverless website? How to run a serverless website?
  8. AWS serverless services Cloudfront L@E S3

  9. We make interfaces. We don’t manage servers.

  10. None
  11. Cloudfront with s3 origin

  12. None
  13. Serverless rewrites with L@E

  14. Serverless rewrites with L@E

  15. @ryanairlabs 2014 2017 2016

  16. What is a micropage? • Independent development & deployment •

    Loosely coupled page • Single Page Application per page • Reduced technical debt surface • Strict performance budget
  17. Micropages architecture

  18. Micropages architecture on AWS

  19. 1.1MB 372KB Micropage size comparison: 66% reduction

  20. None
  21. Brotli is a generic-purpose lossless compression algorithm that compresses data

    using a combination of a modern variant Brotli
  22. Serverless Compression

  23. Brotli L@E

  24. brotli vs gzip: 23% file size difference

  25. None
  26. Serverless canary deployment

  27. Canary deployment L@E duration: ~500ms

  28. Serverless canary deployment v2

  29. Optimised canary deployment comparison: -350ms L@E = -500ms page load

  30. None
  31. What security headers? • X-XSS-Protection • HTTP Strict Transport Security

    (HSTS) • X-Frame-Options • X-Content-Type-Options • Referrer-Policy • CSP
  32. Security headers score

  33. Serverless security headers

  34. None
  35. None
  36. None
  37. Serverless Redirection

  38. Redirect L@E

  39. Takeaways What does it take to run a serverless website

    at scale Build infrastructure based on business needs and team skills Focus on business value thanks to L@E simplicity and flexibility
  40. Thank you