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

Serverless Computing @ Javaland 2017

Serverless Computing @ Javaland 2017

Niko Köbler

March 27, 2017
Tweet

More Decks by Niko Köbler

Other Decks in Technology

Transcript

  1. COMPUTING
    (WITH INFRASTRUCTURE)
    Niko Köbler
    So ware-Architect, Developer & Trainer
    | |
    SERVERLESS
    AWS
    [email protected] www.n-k.de @dasniko

    View Slide

  2. @dasniko

    View Slide

  3. http://www.jug-da.de
    @JUG_DA

    View Slide

  4. DISCLAIMER
    This is silver bullet,
    no standard, but opinionated!
    NO

    View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. This is what actually means...
    serverless

    View Slide

  9. View Slide

  10. View Slide

  11. Serverless is about the of servers.
    Build and run applications
    servers.
    management
    without thinking
    about

    View Slide

  12. OF COMPUTING
    Physical Servers in datacenters
    Virtual Machines in datacenters
    Virtual Machines in Cloud
    Containers on Virtual Machines
    Serverless as the unit of compute
    EVOLUTION

    View Slide

  13. View Slide

  14. View Slide

  15. COMPUTE
    Functions are the unit of deployment and scaling.
    No machines, VMs, or containers visible in the
    programming model.
    Permanent storage lives elsewhere.
    Scales per request;
    Users cannot over- or under-provision capacity.
    Never pay for idle
    (no cold servers/containers or their costs).
    Implicitly fault-tolerant because functions can run
    anywhere.
    BYOC - Bring Your Own Code.
    Metrics and logging are a universal right.
    SERVERLESS MANIFESTO

    View Slide

  16. ?
    Unit of deployment and scale!
    PaaS FaaS
    is as
    DevOps NoOps
    PAAS
    vs.
    vs.

    View Slide

  17. View Slide

  18. AWS
    Event Driven
    JVM-based languages (Java 8),
    JavaScript (Node.js),
    Python, C#, (more to come)
    Versions, Encrypted Environment Variables,
    Step Functions
    Pay as you use - in 100ms blocks
    (e.g. 100ms w/ 128MB memory = USD 0.000000208)
    LAMBDA

    View Slide

  19. View Slide

  20. AWS EVENTS
    S3
    Cloud Watch
    Config
    AWS IoT
    Cognito
    SES
    API Gateway
    (no complete list)
    LAMBDA
    DynamoDB
    Cloud Formation
    Kinesis
    Code Commit
    SNS
    Echo / Alexa
    Cron

    View Slide

  21. View Slide

  22. GATEWAY
    "Reverse Proxy"
    hides possible multiple service calls
    (aka "service composition", ESB?)
    distributes requests to proper service instances
    "Mock" services
    Authentication / Authorization
    Caching, Throttling, DDoS attack protection, etc.
    API

    View Slide

  23. View Slide

  24. DYNAMO
    Fully Managed NoSQL Data Store
    Schemaless Data Model
    DynamoDB Streams
    Record TTL
    Seamless Scalabiltiy, "no limits"
    Pay by Read-/Write-Capacity-Units
    and used storage, not by time
    DB

    View Slide

  25. View Slide

  26. Example
    CASES
    USE

    View Slide

  27. SERVERLESS ARCHITECTURE
    WEB

    View Slide

  28. View Slide

  29. View Slide

  30. API Gateway with , Push and
    SNS SQS

    View Slide

  31. SKILLS
    BOTS (CHAT/VOICE)
    ALEXA

    View Slide

  32. COMPETITORS?

    View Slide

  33. Provider since Environment
    AWS Lambda 2014 JavaScript, Python, Java,
    C#
    Microso
    AzureFunctions
    2016 JavaScript, Python, Java,
    C#, PHP
    Google
    CloudFunctions
    2016 JavaScript
    IBM Bluemix w/
    OpenWhisk*
    2014 JavaScript, Python, Swi
    * Apache OpenWhisk is also available for on-premise usage as OSS under ASL2
    COMPETITORS

    View Slide

  34. THE
    FRAMEWORK
    Manages all the Cloud-Resources and Deployment.
    SERVERLESS
    serverless.com

    View Slide

  35. BUT POWERFUL
    No need to run/manage Application Servers
    Fast results, minimal effort, minimal TTM(!)
    Low costs, minimal financial risk
    Automatic Scalabiltiy and Availability "out-of-the-box"
    SERVERLESS

    View Slide

  36. View Slide

  37. # BUCH
    /
    entwickler. / ~ summer 2017
    SERVERLESS
    serverlessbuch.de @serverlessbuch
    press

    View Slide

  38. THANK !
    ANY ?
    Slides:
    Niko Köbler
    So ware-Architect, Developer & Trainer
    | |
    YOU
    QUESTIONS
    http://bit.ly/serverless-javaland
    [email protected] www.n-k.de @dasniko

    View Slide

  39. LINKS
    AWS Lambda:
    Amazon API Gateway:
    Amazon DynamoDB:
    Google Cloud Functions:
    Microso Azure Functions:
    IBM OpenWhisk:
    Apache OpenWhisk:
    Serverless Framework:
    https://aws.amazon.com/lambda
    https://aws.amazon.com/api-
    gateway
    https://aws.amazon.com/dynamodb
    https://cloud.google.com/functions
    https://azure.microso .com/services/functions
    https://developer.ibm.com/openwhisk
    https://github.com/openwhisk
    http://serverless.com

    View Slide