cloudsolutionday 2016: getting started with severless architecture
TRANSCRIPT
![Page 1: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/1.jpg)
Lê Thanh SangSenior Developer at GO1
Getting Started with Serverless Architectures
November 19, 2016
![Page 2: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/2.jpg)
1. Welcome2. What is Serverless? Benefits of Serverless? 4. Demo: Building note application 5. Q&A
Meetup Agenda
![Page 3: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/3.jpg)
Who Am I?
A husband Working for GO1 from 2013 as Senior Developer Current leading the iTeams (Integrations &
Infrastructure) About GO1: “We help hundreds of organizations
provide training for over 150,000 users”www.go1.com
![Page 4: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/4.jpg)
What is Serverless?
Provisioning
and Utilization
Operations
and Management
Scaling Availability and
Fault Tolerance
Removes the need for….
![Page 5: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/5.jpg)
Benefits of Serverless?
Provisioning
and Utilization
Operations
and Management
Scaling Availability and
Fault Tolerance
Which leads to….
Low Cost Simple Low Latency Scalable Reliable
![Page 6: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/6.jpg)
Platform of Serverless Products
Storage DatabaseCompute
Messaging and QueuesGateways
User Management
Internet of Things
Machine LearningStreaming Analytics
![Page 7: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/7.jpg)
Real-time Processing
Streams
Files
![Page 8: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/8.jpg)
ETL (Extract, Transform, Load)
![Page 9: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/9.jpg)
IoT Backends
![Page 10: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/10.jpg)
Web Application Serverless Architecture
![Page 11: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/11.jpg)
Anatomy of a Web Application
![Page 12: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/12.jpg)
What makes up a web application?
• Let’s break it down…
![Page 13: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/13.jpg)
Serverless Web Application
![Page 14: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/14.jpg)
Where did all the servers go?
![Page 15: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/15.jpg)
Static Website Hosting on S3 - refresher
Specify an index document (i.e. index.html) Specify an error document Objects publicly readable Supports redirects
All Requests Conditional
bucket with objects
![Page 16: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/16.jpg)
API Gateway - refresher
Create Configure Publish
Maintain Monitor Secure
![Page 17: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/17.jpg)
API Gateway – Stage Variables
Key/Value pairs used for configuration Used for different stages of API Specify a Lambda function name Pass to backend
![Page 18: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/18.jpg)
Lambda
Serverless, event-driven compute Code is: NodeJS, Python, JVM based Specify memory allocated Determine what invokes the functions
API Gateway, S3, DynamoDB, Kinesis, SNS, SES, Cognito, Cloudwatch Logs, Cloudwatch Events, CloudFormation, Config, Scheduled Events
![Page 19: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/19.jpg)
Lambda – Versioning and Aliases
• Versioning ARN for each one (immutable) Versions of functions for Dev, Staging, Prod
• Aliases Point to a version Have an ARN also Event sources point to Alias ARNs
![Page 20: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/20.jpg)
Lambda – Dynamic Configuration
• One option:
Pull Configs from DDB Write values to global vars Code uses global vars
Lambda Function
Amazon DynamoDB
![Page 21: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/21.jpg)
DynamoDB - refresher
NoSQL database Keys: Hash Key and (optional) Range Key Tips:
Plan your keys Think about your queries
![Page 22: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/22.jpg)
Demo(https://github.com/sanglt/aws-
serverless-note-demo)
![Page 23: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/23.jpg)
Demo App Architecture
AWS Lambda
Functionsweb browser
Amazon S3
Dynamic Content
Sta
tic C
onte
nt
Amazon DynamoDB
Amazon API Gateway
1
![Page 24: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/24.jpg)
Architect to be Serverless
• Fully Managed No provisioning Zero administration High availability
• Developer Productivity Focus on the code that
matters Innovate rapidly Reduce time to market
• Continuous Scaling Automatically Scale up and scale down
![Page 25: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/25.jpg)
References
• http://www.slideshare.net/AmazonWebServices/getting-started-with-serverless-architectures-august-2016-monthly-webinar-series
• https://github.com/serverless/serverless• http://
docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/GettingStarted.NodeJs.html
![Page 26: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/26.jpg)
Q&A
![Page 27: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/27.jpg)
Thank You
![Page 28: Cloudsolutionday 2016: Getting Started with Severless Architecture](https://reader036.vdocument.in/reader036/viewer/2022070603/5871ae6f1a28abda6a8b61a9/html5/thumbnails/28.jpg)
Meetup: www.meetup.com/aws-vn/
FB: www.facebook.com/groups/amazonwebservicevietnam
Join Slack: https://aws-vn.herokuapp.com/