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

Containers vs. Serverless

Containers vs. Serverless

Niko Köbler

March 22, 2018
Tweet

More Decks by Niko Köbler

Other Decks in Programming

Transcript

  1. CONTAINERS VS. SERVERLESS
    THE GOOD, THE BAD & THE UGLY
    Niko Köbler (@dasniko)

    View full-size slide

  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

    View full-size slide

  3. DISCLAIMER:
    THERE MIGHT(!) BE RANT

    ON CONTAINERS

    View full-size slide

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

    View full-size slide

  5. FAAS ON CONTAINERS…
    ▸OpenFaaS
    ▸Fn Project
    ▸OpenWhisk
    ▸Knative
    CONTAINERS VS. SERVERLESS
    ▸Fission
    ▸Kubeless
    ▸…and probably many,
    many more!

    View full-size slide

  6. SERVERLESS
    IS NOT
    FAAS ON CONTAINERS!

    View full-size slide

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

    View full-size slide

  8. CONTAINERS VS. SERVERLESS

    View full-size slide

  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!

    View full-size slide

  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/

    View full-size slide

  11. CONTAINERS OFFER GREAT POWER, BUT
    THEY ALSO DEMAND OPERATIONAL
    RESPONSIBILITY!
    Daniel Bryant
    CONTAINERS VS. SERVERLESS

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  16. Adrian Cockcroft

    (VP Cloud Architecture Strategy @ AWS)
    VENDOR LOCK?
    2 * VL << DIY!
    Image Source: Battery Ventures

    View full-size slide

  17. THE „LOCK-IN“-THING…
    CONTAINERS VS. SERVERLESS
    AVOID LOCK-IN
    HAVE TOTAL
    CONTROL
    MOVE FAST
    INNOVATE MORE
    REDUCE
    OVERHEAD
    vs.

    View full-size slide

  18. BUT, BUT…
    CLOUD-NATIVE!!!
    CONTAINERS VS. SERVERLESS

    View full-size slide

  19. NO, JUST BECAUSE YOU ARE
    USING KUBERNETES, YOU
    ARE NOT AUTOMATICALLY
    CLOUD-NATIVE!
    CONTAINERS VS. SERVERLESS

    View full-size slide

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

    View full-size slide

  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/

    View full-size slide

  22. CONTAINERS VS. SERVERLESS
    CLOUD-NATIVE IN BULLSHIT-BINGO STYLE…
    https://medium.com/@adrianco/cloud-native-computing-5f0f41a982bf#---0-260

    View full-size slide

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

    View full-size slide

  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/

    View full-size slide

  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/

    View full-size slide

  26. WHEN TO

    CHOOSE WHAT?
    Honestly, it depends!
    Now it’s time for the big question:

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  30. SERVERLESS
    AURORA
    Serverless Relational Database
    CONTAINERS VS. SERVERLESS

    View full-size slide

  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

    View full-size slide

  32. SERVERLESS IS NOT A QUESTION OF IF,
    IT’S A QUESTION OF WHEN!
    Simon Wardley

    (Advisor @ Leading Edge Forum)
    CONTAINERS VS. SERVERLESS

    View full-size slide

  33. Martin Buberl, VP Engineering @ Trustpilot, Slide from https://goo.gl/VjKUXV
    SERVERLESS FIRST (CONTAINERS SECOND)

    View full-size slide

  34. THANK YOU.
    ANY QUESTIONS?
    Slides: http://bit.ly/sls-vs-containers
    Niko Köbler | www.n-k.de | [email protected] | @dasniko
    CONTAINERS VS. SERVERLESS

    View full-size slide