Introducing Serverless Computing (20160802)

Embed Size (px)

Text of Introducing Serverless Computing (20160802)

  • Introducing Serverless ComputingKeisuke Nishitani (@Keisuke69)

    Amazon Web Services Japan K.K.Aug 2, 2016

  • ProfileKeisuke NishitaniSolutions Architect, Amazon Web Service Japan K.K

    @Keisuke69 Keisuke69

    1 REST Lambda Wizards

    : http://keisuke69.hatenablog.jp/

    Keisuke69 Keisuke69Keisuke69x

  • What is Serverless Computing?

  • AWSCompute

    Amazon EC2 Amazon ECS AWS Lambda

    OS

  • AWSCompute

    Amazon EC2 Amazon ECS AWS Lambda

    OS

    OS

    OS

    OS

  • AWSCompute

    Amazon EC2 Amazon ECS AWS Lambda

    OS

    OS

    OS

    OS

    Serverless

  • AWS Lambda

  • Real-time File Processing

    1

    2

    31.

    Amazon S32.

    AWS Lambda

  • Real-time Stream Processing

    1.Amazon Kinesis

    2.AWS Lambda

  • Extract, Transform and Load

    1.NoSQLAmazon DynamoDB

    2.Amazon Lambda

    3.DWHAmazon Redshift

  • Serverless Web and Mobile ApplicationsAmazon S3AWS Lambda HTTPAmazon API Gateway NoSQLAmazon DynamoDB

    AWS Lambda

    Amazon DynamoDB

    API Gateway

    Amazon S3

  • :Alexa + Slack = Serveless bot!

    Alexa""Slack

    Kevin"!"

    Slack API

    Slack

  • Real-Time Message Handling

    New message published

    Amazon SNS AWS Lambda

    Amazon SNS

    Amazon Kinesis

  • Audit CloudTrail Activity

    AWS Lambda

    Amazon S3Amazon CloudTrail

    Amazon SNS

    AWS IAM

  • Automated Infrastructure Management

    AWS Lambda

    Amazon SNS

    Amazon CloudWatch Alarm

    ec2runInstance

    ecsstartTask

    beanstalkupdateApp

    kinesissplitShard

    Any API call

    https://aws.amazon.com/blogs/compute/scaling-amazon-ecs-services-automatically-using-amazon-cloudwatch-and-aws-lambda/

  • Forward AWS Events to External Endpoints

    http://danilop.net/aws/2015/07/26/sns2ifttt/ |https://github.com/danilop/SNS2IFTTT

    AWS Lambda

    Amazon SNS

    IFTTT via the Maker channel

    Amazon CloudWatch Events

    Auto Scaling

  • Deploy Lambda Functions

    https://aws.amazon.com/blogs/compute/dynamic-github-actions-with-aws-lambda/

    AWS Lambda

    Amazon SNS

    GitHub Repo

    lambda createFn ()

  • VidRoll EC2

    IT

    API Gateway

    Lambda

    10

  • Legacy Architecture

    Limelight Edge

    Laptop Encoders

    RTMPWowza Transmux

    Servers

    Wowza Transcode Servers

    Wowza Record Servers

    RTMP

    RTMP

    RTMP

    Auto Uploader

    MP4 HLS

    S3 VOD bucket

    CloudFront mobile client

    Live Streaming

    VOD

    CloudFront mobile clientHLS

    HLS

  • Current Architecture

    Laptop Encoders

    HLS

    S3 Playback

    VOD Stream mobile client

    CloudFront Streaming

    Live stream mobile client

    CloudFront S3 Ingest

    480p Transcode

    HQ Copy

    360p Transcode

    Audio-only Transcode

    Thumbnail

    QOS Analytics

    Cascading Lambda Functions

  • easy tenMobile app that helps you learn 10 new, foreign words a day

    Users have learned

    170 000 000+new words

    1 200 000+downloads

    Featured in 85+ countries Top 5 grossing apps overall (Russia) Top 8 grossing apps overall (Brazil)

  • EC2

    /

  • Lambda consumer

    S3

    Mobile Analytics

    DynamoDB

    SQS

    Amazon EMR

    Amazon Cognito

    Amazon Kinesis

    Mobile app

    Amazon Redshift

    Lambda interface

    S3 dump

    DynamoDB log

    Microservice Core

  • 819() Serverless 1457