hashiconf aws lambda breakout

Download Hashiconf AWS Lambda Breakout

Post on 13-Jan-2017

776 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

  • IAN MASSINGHAM

    CHIEF EVANGELIST (EMEA)

    AMAZON WEB SERVICES

    APPLICATIONSWITHOUT

    INFRASTRUCTURE

  • @IANMMMMAPPLICATIONS

    WITHOUTINFRASTRUCTURE

  • FROM 2010

  • TODAY, THE BENEFITS ARE WELL UNDERSTOOD

    PAY FORWHAT YOU USE

    RELEASE RESOURCESWHEN NO LONGER

    NEEDED

    ACQUIRE RESOURCESON DEMAND

    LEVERAGE OTHERSCORE COMPETENCIES

    TURN FIXED COSTINTO VARIABLE

  • THE TECHNOLOGY PLATFORM OF CHOICE

  • LARGEST NUMBER OF START-UP CUSTOMERS

  • LARGEST NUMBER OF ENTERPRISE CUSTOMERS

  • BUILDING BLOCKS FORINTERNET-SCALE APPS

    AMAZON S3

    STORAGE

    AWS LAMBDA

    FUNCTIONS

    AMAZON DYNAMODB

    DATA STORE

  • SIMPLICITY SCALABILITY LOW COST RELIABILITY LOW LATENCY

    ALL SHARE THE SAME COMMON CHARACTERISTICS

  • AWS LAMBDA: INTERNET-SCALE COMPUTE PLATFORM

    DEPLOY YOUR CODE IN SECONDS

    SUB-SECOND METERING

    NO SERVERS TO PROCURE, PROVISION OR MANAGE

  • MOBILE CHAT APP

    AD DATA ANALYTICS AND ROUTING

    MOBILE APP ANALYTICS

    IMAGE CONTENT FILTERING

    REAL-TIME VIDEO AD BIDDING

    NEWS CONTENT PROCESSING

    GENE SEQUENCE SEARCH

    CLOUD TELEPHONY

    DATA PROCESSING

    WEB APPLICATIONS

    WEB APPLICATIONSTHREAT INTELLIGENCE AND ANALYTICS

    NEWS CONTENT PROCESSING

    GAME METRICS ANALYTICS

    SERVERLESS WEB APPLICATIONS

  • HTML IN S3

    JAVASCRIPT

    COGNITO

    API GATEWAY DYNAMODB

    SEARCH

    RECOMMEND

    CREATE/UPDATE

    1. SERVERLESS WEB APPLICATIONS

    HTTPS://AWS.AMAZON.COM/SOLUTIONS/CASE-STUDIES/BUSTLE/

  • Demo

    https://dev.thisonesforyou.com/master/249/index.html

  • @parallax

  • 1. User visits

    S3 with CloudFront

    2. CSS & JS

    HTTPSGET*.js*.css

    S3 with CloudFront

    3. Lang Detect

    API Gateway & AWS Lambda

    HTTPSGET/users/country

    API Gateway & AWS Lambda

    Inserted into DynamoDB

    HTTPSPOST/users/update

    HTTPSGET /

    4. User fills details

    PAGE LIFECYCLE

    index.html

  • 5. FB Login (optional)

    Hits Facebook Hosted Endpointvia Facebook Javascript SDK

    6. YouTube

    HTTPSGETyoutube.com

    YouTube iframe

    7. Start recording

    API Gateway w/Lambda

    Responds with S3 upload token

    HTTPSGET/recordings/token

    Uploads directly to S3 bucket over HTTPS using token

    HTTPSPOSTbucket.s3.amazon/UID/recording-X.mp3

    HTTPSGET api.facebook.com

    8. Upload recording

    PAGE LIFECYCLE5.

    6.

    7. 8.{email: xyz,profile_id: 123}

    http://youtube.com

  • 10. 11.

    12. 13.

    9. Submit details

    API Gateway w/Lambda

    10. Artwork gen

    HTTPSPOST/users/generate_artwork

    API Gateway w/Lambda.Create image, put on S3, return S3 image URL

    11. Artwork display

    CloudFront w/ S3

    HTTPSGET/domain.com/UID.png

    AddThis.js is populated with the share texts, and includes the S3 URL

    HTTPGETaddthis.com/file.js

    HTTPSPOST/users/update

    { url: domain.com/UID.png }

    12. Social share 13. Social share

    HTTPSGEThttps://twitter.com/intent/tweet?text=XYZ

    Directly hits the social media service

    PAGE LIFECYCLE

    http://domain.com/UID.pnghttp://addthis.com/file.js

  • N-TIER MODEL

    SERVERLESS MODEL

  • NODE.JS WEB APP

    SERVER-SENT EVENT STREAMING RESPONSE

    QUERY

    S3

    LAMBDA CASCADE FUNCTION N

    LAMBDA CASCADE FUNCTION 0 LAMBDA COUNTING

    FUNCTION 0

    USER

    LAMBDA COUNTING

    FUNCTION 0

    LAMBDA COUNTING

    FUNCTION 0

    LAMBDA COUNTING

    FUNCTION 0

    2. SERVERLESS DATA PROCESSING

    WEB UI CASCADE PROCESS

  • 3. INTERNET OF THINGS

  • AWS IoT

    DEVICE SDK Set of client libraries to

    connect, authenticate and exchange messages

    DEVICE GATEWAY Communicate with devices via

    MQTT and HTTP

    AUTHENTICATION AUTHORIZATION

    Secure with mutual authentication and encryption

    RULES ENGINE Transform messages

    based on rules and route to AWS Services

    AWS Services - - - - -

    3rd Party Services

    DEVICE SHADOW Persistent thing state during

    intermittent connections

    APPLICATIONS

    AWS IoT API

    DEVICE REGISTRY Identity and Management of

    your things

  • CLOUDWATCHEVENTS

    LIFECYCLE HOOKS

    CONFIG RULES

    SCHEDULEDJOBS

    ECOSYSTEM

    4. CONNECTIVE TISSUE FOR AWS ENVIRONMENTS

  • LAMBDA FUNCTIONS HAVE IAM ROLES

    AWS LAMBDA

    FUNCTIONS

    VIRTUAL MACHINES

    CONTAINERS

  • LAMBDA

    S3

    DYNAMODB

    KINESISCLOUDSEARCH SQS SES SNS

    TWILIO ALGORITHMIA DATADOG MASHAPE SPLUNK

    THE API OS

  • AMAZON S3

    STORAGE

    AWS LAMBDA

    FUNCTIONS

    AMAZON DYNAMODB

    DATA STORE

    APIS EMAIL MESSAGING

    NOTIFICATION MONITORING ENCRYPTION

    SERVICES NOT SERVERS

  • DEMO - DEPLOYING AWS LAMBDA WITH TERRAFORM

  • https://www.youtube.com/watch?v=g5PNX-8MRt0https://serverlesscode.com/post/david-guetta-online-recording-with-lambda/https://parall.ax/blog/view/3202/tutorial-serverless-scheduled-taskshttps://aws.amazon.com/lambda/

  • THANK YOU@IANMMMM