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

Getting Started with Serverless Apps

Getting Started with Serverless Apps

Web Summit, Lisbon, November 9th, 2017

Build and run applications without thinking about servers. This session will introduce you to the core concepts of serverless development and show you how to quickly build a scalable and highly available API using the tools that AWS provides.

Danilo Poccia

November 09, 2017
Tweet

More Decks by Danilo Poccia

Other Decks in Programming

Transcript

  1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
    Danilo Poccia, Technical Evangelist
    [email protected]
    Getting Started with Serverless Apps
    @danilop
    danilop

    View Slide

  2. View Slide

  3. What is Serverless?

    View Slide

  4. Lambda
    Function
    Do whatever you want: It’s Your Code!
    Trigger

    View Slide

  5. Lambda
    Function
    Trigger Do whatever you want: It’s Your Code!
    S3
    Bucket
    Amazon
    API Gateway
    DynamoDB
    Table
    AWS IoT
    Rule
    Much
    More!
    Amazon
    CloudWatch

    View Slide

  6. Lambda
    Function
    You can “chain” events to build
    Event-Driven Applications
    S3
    Bucket
    DynamoDB
    Table
    Lambda
    Function
    Mobile
    App
    1. Think Event-Driven
    2. Expect Eventual Consistency of Data
    3. Design Idempotent
    4. Apply the Principle of Least Privilege

    View Slide

  7. Serverless Case Studies
    PhotoVogue is an online photography platform.
    Launched in 2011 and part of Vogue Italia - which
    is owned by Condé Nast Italia - it allows upcoming
    photographers to showcase their work.
    The Benefits
    Quicker provisioning, from days to hours
    90% faster
    Cut IT costs by around 30%
    Seamless scalability
    Amazon
    S3
    AWS
    Lambda
    Amazon
    API Gateway
    Amazon
    CloudFront
    “With Amazon API Gateway and AWS
    Lambda, the user experience is up to 90%
    faster. That's for both photographers
    uploading images and the editorial team
    processing them.”
    Marco Viganò
    Head of Digital Development

    View Slide

  8. Serverless Case Studies
    F-Secure Increases Customer Insight
    and Speeds Up Activation Using AWS
    “We’ve shown the rest of the
    company that we can put our ideas
    into action faster and save 70% on
    infrastructure costs by using AWS
    compared to running hardware on-
    premises…. We’re inspiring a shift
    toward the cloud, and
    microservices in particular,
    because of these great benefits.”
    Niina Ojala
    Service Lead

    View Slide

  9. Serverless Case Studies
    UK Driver and Vehicle Licensing Agency Supports
    Secure, Data-Driven Innovation
    “We are decomposing our applications into smaller,
    discrete components so we can choose the most
    appropriate technology”
    An API-First Approach
    “We stood up a working prototype in just a few days using
    Amazon API Gateway. The speed with which we were
    able to deliver it was unprecedented”
    Matt Lewis
    Chief Architect, Driver and Vehicle Licensing Agency
    AWS
    Lambda
    Amazon
    API Gateway

    View Slide

  10. Demo

    View Slide

  11. https://github.com/danilop/first-serverless-functions

    View Slide

  12. Serverless by Design

    View Slide

  13. Serverless by Design
    A visual approach to serverless development.
    Event-driven.
    Think. Build. Repeat.

    View Slide

  14. Serverless by Design

    View Slide

  15. Serverless by Design

    View Slide

  16. Serverless by Design

    View Slide

  17. Serverless by Design

    View Slide

  18. Deploying SAM templates
    aws cloudformation package
    --template-file template.yaml
    --output-template-file template-output.yaml
    --s3-bucket --s3-prefix
    aws cloudformation deploy
    --template-file ./template-output.yaml
    --stack-name
    --capabilities CAPABILITY_IAM

    View Slide

  19. Serverless by Design
    https://sbd.danilop.net
    https://github.com/danilop/ServerlessByDesign

    View Slide

  20. AWS SAM Local
    https://github.com/awslabs/aws-sam-local

    View Slide

  21. View Slide

  22. AWS Serverless Workshop
    https://github.com/awslabs/aws-serverless-workshops
    Code and walkthrough labs to set up serverless
    applications for Wild Rydes workshops

    View Slide

  23. What is Serverless?
    “Build and run
    applications
    without thinking
    about servers”

    View Slide

  24. https://bit.ly/devworkshops

    View Slide

  25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
    Danilo Poccia, Technical Evangelist
    [email protected]
    Getting Started with Serverless Apps
    @danilop
    danilop

    View Slide