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

Containers vs. Serverless

Containers vs. Serverless

395d9a1bac6f64d04bbd713d5b6bc433?s=128

Niko Köbler

March 22, 2018
Tweet

Transcript

  1. CONTAINERS VS. SERVERLESS THE GOOD, THE BAD & THE UGLY

    Niko Köbler (@dasniko)
  2. ABOUT ME ▸ Freelance Consultant/Architect/Developer/Trainer @ www.n-k.de ▸ Doing stuff

    with & without computers, writing Software, ~ 20 yrs ▸ Co-Lead of JUG DA (https://www.jug-da.de / @JUG_DA) ▸ Speaker at international Tech Conferences ▸ Author of „Serverless Computing in AWS Cloud“
 serverlessbuch.de ▸ Twitter: @dasniko CONTAINERS VS. SERVERLESS
  3. DISCLAIMER: THERE MIGHT(!) BE RANT
 ON CONTAINERS

  4. THERE IS FUSS ABOUT THE NAME „SERVERLESS“ IT’S JUST A

    NAME!
  5. FAAS ON CONTAINERS… ▸OpenFaaS ▸Fn Project ▸OpenWhisk ▸Knative CONTAINERS VS.

    SERVERLESS ▸Fission ▸Kubeless ▸…and probably many, many more!
  6. SERVERLESS IS NOT FAAS ON CONTAINERS!

  7. OPERATIONAL OVERHEAD, E.G. FN PROJECT CONTAINERS VS. SERVERLESS from: https://github.com/fnproject/fn/blob/master/docs/operating/production.md

  8. CONTAINERS VS. SERVERLESS

  9. YOUR FUNCTION RUNNING IN A JVM PACKED INTO DOCKER DEPLOYED

    TO KUBERNETES ON TOP OF DC/OS MANAGED BY MESOS INSTALLED ON V I R T U A L M A C H I N E S C O N T R O L L E D B Y A HYPERVISOR RUNNING ON BARE METAL. Photo by Michael Johansson (http://www.michaeljohansson.com) …and I’m sure, I forgot a few layers!
  10. ARE YOUR CONTAINERS STABLE AND SECURE? Photo by Michael Johansson

    (http://www.michaeljohansson.com) http://www.diversity.net.nz/docker-and-some-serverless-ambitions/2017/11/09/
  11. CONTAINERS OFFER GREAT POWER, BUT THEY ALSO DEMAND OPERATIONAL RESPONSIBILITY!

    Daniel Bryant CONTAINERS VS. SERVERLESS
  12. IN THE MEANWHILE, EVOLUTION… CONTAINERS VS. SERVERLESS

  13. „CONTAINERLESS“ https://read.acloud.guru/serverless-superheroes-lynn-langit-on-big-data-nosql-and-google-versus-aws-f4427dc8679c

  14. AWS FARGATE Run containers without managing servers or clusters https://aws.amazon.com/fargate/

  15. VENDOR LOCK-IN!!! CONTAINERS VS. SERVERLESS

  16. Adrian Cockcroft
 (VP Cloud Architecture Strategy @ AWS) VENDOR LOCK?

    2 * VL << DIY! Image Source: Battery Ventures
  17. THE „LOCK-IN“-THING… CONTAINERS VS. SERVERLESS AVOID LOCK-IN HAVE TOTAL CONTROL

    MOVE FAST INNOVATE MORE REDUCE OVERHEAD vs.
  18. BUT, BUT… CLOUD-NATIVE!!! CONTAINERS VS. SERVERLESS

  19. NO, JUST BECAUSE YOU ARE USING KUBERNETES, YOU ARE NOT

    AUTOMATICALLY CLOUD-NATIVE! CONTAINERS VS. SERVERLESS
  20. CONTAINERS VS. SERVERLESS https://twitter.com/garethr/status/1057997802238869504 I’LL LEAVE THIS HERE…

  21. WHAT CLOUD-NATIVE ACTUALLY MEANS… ▸ Containerized
 Each part (applications, processes,

    etc) is packaged in its own container. This facilitates reproducability, transparency and resource isolation. ▸ Dynamically orchestrated
 Containers are actively scheduled and managed to optimize resource utilization. ▸ Microservices oriented
 Applications are segmented into microservices. This significantly increases the overall agility and maintainability of applications. ▸ …and there’s also a Serverless-WG in CNCF, which has released version 0.1 of CloudEvents (cloudevents.io)! CONTAINERS VS. SERVERLESS https://www.cncf.io/about/faq/
  22. CONTAINERS VS. SERVERLESS CLOUD-NATIVE IN BULLSHIT-BINGO STYLE… https://medium.com/@adrianco/cloud-native-computing-5f0f41a982bf#---0-260

  23. LET’S GET A BIT MORE SOPHISTICATED… CONTAINERS VS. SERVERLESS

  24. CONTAINERS VS. SERVERLESS ADVANTAGES OF CONTAINERS ▸ Control and flexibility

    ▸ Vendor-agnostic ▸ Easier migration path ▸ Portability DISADVANTAGES OF CONTAINERS ▸ Administrative Work
 (e.g. apply security fixes for containers, etc.) ▸ Scaling is slower ▸ Running costs ▸ Hard to get started ▸ More manual intervention see also: https://serverless.com/blog/serverless-faas-vs-containers/
  25. CONTAINERS VS. SERVERLESS ADVANTAGES OF SERVERLESS ▸ Zero administration ▸

    Pay-per-execution ▸ Zero cost for idle time ▸ Auto-scaling ▸ Faster time-to-market ▸ Microservice nature
 -> clearer codebase separation ▸ Significantly reduced administration and maintenance burden DISADVANTAGES OF SERVERLESS ▸ No standardization (yet… -> CloudEvents) ▸ „Black box“ environment ▸ Vendor lock-in (yet…) ▸ Cold starts (yet…) ▸ Complex apps can be hard to build and manage see also: https://serverless.com/blog/serverless-faas-vs-containers/
  26. WHEN TO
 CHOOSE WHAT? Honestly, it depends! Now it’s time

    for the big question:
  27. CONTAINERS VS. SERVERLESS https://twitter.com/kelseyhightower/status/921527605110513665 RETHINK THINKING…

  28. CONTAINERS VS. SERVERLESS https://twitter.com/kelseyhightower/status/985917244029878272 RETHINK THINKING…

  29. EVOLUTION DOESN’T STOP… CONTAINERS VS. SERVERLESS

  30. SERVERLESS AURORA Serverless Relational Database CONTAINERS VS. SERVERLESS

  31. SERVERLESS AURORA CONTAINERS VS. SERVERLESS https://aws.amazon.com/de/blogs/aws/in-the-works-amazon-aurora-serverless/ ▸multi-region ▸multi-master ▸separated storage


    & compute resources
  32. SERVERLESS IS NOT A QUESTION OF IF, IT’S A QUESTION

    OF WHEN! Simon Wardley
 (Advisor @ Leading Edge Forum) CONTAINERS VS. SERVERLESS
  33. Martin Buberl, VP Engineering @ Trustpilot, Slide from https://goo.gl/VjKUXV SERVERLESS

    FIRST (CONTAINERS SECOND)
  34. THANK YOU. ANY QUESTIONS? Slides: http://bit.ly/sls-vs-containers Niko Köbler | www.n-k.de

    | niko@n-k.de | @dasniko CONTAINERS VS. SERVERLESS