Going Serverless with AWS

Going Serverless with AWS

Creating applications without provisioning or managing servers

The AWS platform has a bunch of services to make your application "serverless". We will take a look at what defines something to be serverless and how we can leverage services like AWS Lambda, DynamoDB, API Gateway and S3 to build our own applications to be cost-effective, scalable and highly-available.

456d636250db8f84291272cc63d508b7?s=128

Ben Bridts

June 12, 2019
Tweet

Transcript

  1. 4.

    A Definition • No server management • Flexible Scaling •

    High Availability • No idle capacity (pay for value) Ben Bridts - @benbridts 4
  2. 8.

    Pricing? • $0.20 per 1M requests. First 1M free. ($0.0000002

    per request) • $0.00001667 per GB-second. First 400.000 free ($0.000000208 for 128MB-100ms) Ben Bridts - @benebridts 8 "Money" by free pictures of money is licensed under CC BY 2.0
  3. 10.

    My Code • NodeJS, Python, Ruby, Java, Go, .NET Core

    • Zip your dependencies (even compiled) • Configure Memory (CPU and Network follow) • Support for environment variables Ben Bridts - @benbridts 10 Photo by Markus Spiske
  4. 11.

    Layers • Vendor common files • Custom Runtimes: • https://aws.amazon.com/blogs/apn/aws-lambda-custom-runtime-for-php-a-

    practical-example/ • https://github.com/stackery/php-lambda-layer Ben Bridts - @benbridts 11 Photo by Annie Spratt
  5. 12.

    There is more… • Metrics • Logging • IAM •

    Editor • Versions • Can run in a VPC • 5GB of /tmp storage • … Ben Bridts - @bnbridts 12 Photo by Miguel Orós
  6. 16.

    Things I should have told you… • Cold start /

    warm start (outside handler / inside handler) • Lambda at Edge • Concurrency Ben Bridts - @benbridts 16
  7. 17.

    Tools and Frameworks • AWS SAM & SAM CLI •

    https://docs.aws.amazon.com/lambda/latest/dg/sam-cli-requirements.html • Serverless Framework • https://serverless.com/ • Up • https://up.docs.apex.sh/ • Cloud9 • https://docs.aws.amazon.com/cloud9/latest/user-guide/lambda- functions.html Ben Bridts - @benebridts 17