SlideShare a Scribd company logo
1 of 64
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Madhusudan Shekar
@madhushekar23
AWS Startup Day
Going Serverless
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
We know this…
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Owning Servers means…
Operations and management Scaling
Provisioning and utilization Availability and fault tolerance
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Going Serverless…
Code is all you need Event driven scaling
Never pay for idle Availability and fault tolerance built in
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Many different use cases
• Analytics
• Operational management
• Live Dashboards
• Data workflows
• Content management
• ETL workflows
• Interactive Backends
• Bots
• Webhooks
• Autonomous IT
• Policy engines
• Infrastructure management
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Serverless offerings
And more !!
Lambda DynamoDB S3 Kinesis
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Lambda
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is Lambda
Functions are the unit of deployment and scaling.
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How Lambda works
S3 event
notifications
DynamoDB
Streams
Kinesis
events
Cognito
events
SNS
events
Custom
events
CloudTrail
events LambdaDynamoDB
Kinesis S3
Any custom
Redshift
SNS
CloudWatch
events
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
But what really *is* AWS Lambda?
• Linux containers as an implementation, not a programming or deployment
abstraction
– Process and network isolation, cgroups, seccomp, …
• Predictive capacity management
– Purpose-built, massively scaled language runtime delivery service
• Swagger interpreter (API Gateway)
• Cold vs Hot state
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How does a Lambda function looks like?
def hello(event, context):
return {
"message": ”Hello World!",
"event": event
}
'use strict';
handlermodule.exports.hello = (event, context, cb) => cb(null,
{ message: ’Hello World!', event }
);
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Continuous
scaling
No servers to
manage
Never pay for idle
– no cold servers
Benefits of AWS Lambda
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pay-per request
• Buy compute time in
100 ms increments
• Low request charge
• No hourly, daily, or
monthly minimums
• No per-device fees
Never pay for idle!
Free Tier
1 million requests and 400,000 GBs of compute
every month, every customer
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Using AWS Lambda
• Bring your own code
• Node.js, Java, Python
• Bring your own libraries
(even native ones)
Simple resource model
• Select power rating from
128 MB to 1.5 GB
• CPU and network allocated
proportionately
• Reports actual usage
Flexible authorization
• Securely grant access to
resources, including VPCs
• Fine-grained control over
who can call your functions
Flexible use
• Call or send events
• Integrated with other AWS
services
• Build whole serverless
ecosystems
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Using AWS Lambda
• Programming model
• AWS SDK built in (Python
and Node.js)
• Lambda is the front end
• Use processes, threads,
/tmp, sockets normally
Stateless
• Persist data using Amazon
DynamoDB, S3, or
ElastiCache
• No affinity to infrastructure
(can’t “log in to the box”)
Authoring functions
• Author directly using the
console WYSIWYG editor
• Package code as a .zip and
upload to Lambda or S3
• Plugins for Eclipse and
Visual Studio
• Command line tools
Monitoring and logging
• Built-in metrics for requests,
errors, latency, and throttles
• Built-in logs in Amazon
CloudWatch Logs
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Key scenarios
Data Triggers
Customize behavior
on data updates in
S3, SNS and DDB
Control systems
Customize responses and
response workflows to
state changes within AWS
Serverless
backends
Execute server side
backend logic in a
cross platform
fashion
Big data
Realtime processing
of streaming data
updates using
Kinesis
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Monitoring and debugging
Lambda Functions
• AWS Lambda console includes
a dashboard for functions
• Lists all Lambda functions
• Easy editing of resources, event
sources and other settings
• At-a-glance metrics
• Metrics automatically reported
to Amazon CloudWatch for each
Lambda function
• Requests
• Errors
• Latency
• Throttles
• Logs captured by Amazon
CloudWatch Logging service
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Calling Lambda over the Internet – REST API
HTTP
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
API Gateway APIs for Lambda
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Calling Lambda over the Internet using API Gateway
HTTP
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Managed
API Gateway managed model
InternetMobile apps
AWS Lambda
functions
AWS
API Gateway
cache
Endpoints on
Amazon EC2
Any other publicly
accessible endpoint
Amazon
CloudWatch
Amazon
CloudFront
API
Gateway
API Gateway
Other AWS
services
AWS Lambda
functions
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Benefits of Amazon API Gateway
Create a unified API
front end for
multiple
microservices
DDoS protection
and throttling for
back-end systems
Authenticate and
authorize requests
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda + Cloudwatch Events
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security and Conformity
• “Trust but verify” with high confidence via events.
• Deployments verified with every change.
• Lambda guarantees that each instance is in
compliance with defined security rules.
• Triggers shutdown of violations and notifications.
• Compliance and readiness rules can be validated
with every resource change.
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Tagging resources as they start
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda + Schedulers
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scheduled Event (CRON)
• Dev/QA Environments: Stop running instances
at 19:00 h and Start it again at 8:00 between
Monday to Friday.
• Log cleanup
• Batching up statistics
• Alarm clock
• Infrastructure automation
• Backup scheduler
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Backup and Disaster Recovery
• Cross-region replication to multiple regions.
• Off-site backups.
• Validation of those backups is difficult to scale.
• Set rules on Lambda that defines what needs to
be backup and checks
• Validates and raise alarms in case of failure.
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Start/Shutdown of Instances
https://github.com/pebo/cloud-nanny
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda + S3
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Dynamic data ingestion using S3+Lambda
Amazon S3 AWS Lambda
processes
the object
Amazon S3
New object
uploaded
Amazon
DynamoDB
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Customers running S3 + Lambda pipelines
AWS
Lambda
Indexing
tables or
notifications
Apply custom logic to process content being
uploaded into S3.
• Watermarking / thumbnailing
• Transcoding
• Indexing and deduplication
• Aggregation and filtering
• Pre processing
• Content validation
• WAF updates
Amazon S3
Bucket
Events
Processed
files
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Resize images to thumbnails
• Example: Amazon S3 bucket triggers
Amazon S3 bucket events
Original object
Compressed object
1
2
3
AWS Lambda
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda + Kinesis
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Real time stream processing with Kinesis+Lambda
Amazon
Kinesis
AWS Lambda
processes
the stream
Amazon
CloudWatch Logs
Amazon SNS
New data
available
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Customers using real-time processing pipelines
AWS
Lambda
Aggregate
statistics
Real-time
analytics
Kinesis Stream
Apply custom logic to process data
being uploaded through Kinesis stream
• Client activity tracking
• Metrics generation
• Data cleansing
• Log filtering
• Indexing and searching
• Log routing
• Live alarms and notifications
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Real-Time Analytics
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda + DynamoDB
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Triggers Workflow Using DynamoDB & Lambda
New data
available
Amazon DynamoDB AWS Lambda
Amazon
DynamoDB
Amazon
Redshift
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Indexing DynamoDB content using ElasticSearch
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda + SNS
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Real-Time Message Handling Workflow Using SNS & Lambda
New message
published
Amazon SNS AWS Lambda
Amazon SNS
Amazon Kinesis
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Example workloads on SNS+Lambda
AWS
Lambda
Amazon SNS
“I want to run custom logic in response to
my CloudWatch Alarms”
“I want to customize messages before
publishing them to my target audience”
“I want to execute custom code when new
messages are posted on my (SNS)
message bus”
Amazon
CloudWatch
On-prem events
Customized
message
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda Powered APIs
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
An API Call Flow
Internet
Mobile Apps
Websites
Services
API
Gateway
AWS Lambda
functions
AWS
API Gateway
Cache
Endpoints on
Amazon EC2
Any other publicly
accessible endpoint
Amazon
CloudWatch
Monitoring
Amazon
CloudFront
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless URL Shortener
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SMS powered Lambda with Twillio
{
"body" : "$input.params('Body')",
"fromNumber" : "$input.params('From')",
"numMedia" : "$input.params('NumMedia')"
}
LambdaAPI GatewayTwilio SMS integration - webhook
Twilio Call API
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda + Mobile Apps
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Building Mobile Backends with Lambda
• Lambda as the backend logic for mobile
applications.
• Easy Personalization
– … for devices
– … for end users
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda + Alexa
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alexa apps + Slack = serverless bots!
Alexa, tell Slack to
send, “I’m giving the
demo now.”
Message retrieval through scheduled polling
Kevin says,
“Break a leg!”
Message upload (via
Slack API)
Team
(channel users)
Slack
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Developing Lambda How-to
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Serverless Application Model (SAM)
• AWS CloudFormation extension optimized
for serverless
• New serverless resource types: functions,
APIs, and tables
• Supports anything CloudFormation
supports
• Open specification (Apache 2.0)
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SAM Template
AWSTemplateFormatVersion: '2010-09-09’
Transform: AWS::Serverless-2016-10-31
Resources:
GetHtmlFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://sam-demo-bucket/todo_list.zip
Handler: index.gethtml
Runtime: nodejs4.3
Policies: AmazonDynamoDBReadOnlyAccess
Events:
GetHtml:
Type: Api
Properties:
Path: /{proxy+}
Method: ANY
ListTable:
Type: AWS::Serverless::SimpleTable
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless (previously Jaws)
• http://serverless.com
– New Release: Serverless V1.0 Beta 2
• Supports Node.js, Python & Java.
• Manages the lifecycle of your serverless architecture (build, deploy, update,
delete).
• Safely deploy functions, events and their required resources together via
provider resource managers (e.g., AWS CloudFormation).
• Functions can be grouped ("serverless services") for easy management of
code, resources & processes, across large projects & teams.
• Built-in support for multiple stages.
• Logging support (serverless logs --function myfunction)
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Chalice - Python Serverless Microframework for AWS
• Allows to quickly create and deploy applications
• It provides:
– A command line tool for creating, deploying, and managing your app
– A familiar and easy to use API for declaring views in python code
– Automatic IAM policy generation
– Logging support (chalice logs)
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Python Serverless Microframework for AWS
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CloudFormation
• All in one template
• Versioned with GIT
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Custom projects
• Bash scripts
– Create roles and policies
– Deploy functions & gateways
• Versioned with GIT
• Locally tests (emulambda)
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Emulambda - Python emulator for AWS Lambda
>> emulambda nanny.lambda_handler - -v < event_bedtime.json
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
lambda-local - NodeJS emulator for AWS Lambda
>> lambda-local -l index.js -h handler -e event-samples/s3-put.js
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SAM Local – CLI tool to test Lambda locally
• Develop and test your Lambda functions locally with sam
local and Docker
• Invoke functions from known event sources such as
Amazon S3, Amazon DynamoDB, Amazon Kinesis, etc.
• Start local API Gateway from a SAM template, and quickly
iterate over your functions with hot-reloading
• Validate SAM templates
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The serverless compute manifesto
• Functions are the unit of deployment and scaling.
• No machines, VMs, or containers visible in the programming model.
• Permanent storage lives elsewhere.
• Scales per request. Users cannot over- or under-provision capacity.
• Never pay for idle resources.
• Implicitly fault-tolerant because functions can run anywhere.
• BYOC – Bring your own code and ALWAYS package dependencies
• Metrics and logging are a universal right.
• Turn VPC on only if necessary.
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank You!
Madhusudan Shekar
Twitter: @madhushekar23
LinkedIn: /in/madhusudanshekar

More Related Content

What's hot

Monitoring, Hold the Infrastructure - Getting the Most out of AWS Lambda - AW...
Monitoring, Hold the Infrastructure - Getting the Most out of AWS Lambda - AW...Monitoring, Hold the Infrastructure - Getting the Most out of AWS Lambda - AW...
Monitoring, Hold the Infrastructure - Getting the Most out of AWS Lambda - AW...Amazon Web Services
 
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...Amazon Web Services
 
8 ways to leverage AWS Lambda in your Big Data workloads
8 ways to leverage AWS Lambda in your Big Data workloads8 ways to leverage AWS Lambda in your Big Data workloads
8 ways to leverage AWS Lambda in your Big Data workloadsAdrian Hornsby
 
Trova ed utilizza in modo sicuro nel Cloud il software che ti serve con l'AWS...
Trova ed utilizza in modo sicuro nel Cloud il software che ti serve con l'AWS...Trova ed utilizza in modo sicuro nel Cloud il software che ti serve con l'AWS...
Trova ed utilizza in modo sicuro nel Cloud il software che ti serve con l'AWS...Amazon Web Services
 
Building a Data Processing Pipeline on AWS - AWS Summit SG 2017
Building a Data Processing Pipeline on AWS - AWS Summit SG 2017Building a Data Processing Pipeline on AWS - AWS Summit SG 2017
Building a Data Processing Pipeline on AWS - AWS Summit SG 2017Amazon Web Services
 
Industry 4.0: come i servizi IoT e Big Data di AWS rendono Smart il Manufactu...
Industry 4.0: come i servizi IoT e Big Data di AWS rendono Smart il Manufactu...Industry 4.0: come i servizi IoT e Big Data di AWS rendono Smart il Manufactu...
Industry 4.0: come i servizi IoT e Big Data di AWS rendono Smart il Manufactu...Amazon Web Services
 
Semplificare l'analisi dei dati con architetture "Serverless": architetture e...
Semplificare l'analisi dei dati con architetture "Serverless": architetture e...Semplificare l'analisi dei dati con architetture "Serverless": architetture e...
Semplificare l'analisi dei dati con architetture "Serverless": architetture e...Amazon Web Services
 
Getting started with Serverless on AWS
Getting started with Serverless on AWSGetting started with Serverless on AWS
Getting started with Serverless on AWSAdrian Hornsby
 
Lessons & Use-Cases at Scale - Dr. Pete Stanski
Lessons & Use-Cases at Scale - Dr. Pete StanskiLessons & Use-Cases at Scale - Dr. Pete Stanski
Lessons & Use-Cases at Scale - Dr. Pete StanskiAmazon Web Services
 
SQL Strikes Back! Options for Large Scale SQL Analytics - AWS Summit SG 2017...
SQL Strikes Back! Options for Large Scale SQL Analytics - AWS Summit SG  2017...SQL Strikes Back! Options for Large Scale SQL Analytics - AWS Summit SG  2017...
SQL Strikes Back! Options for Large Scale SQL Analytics - AWS Summit SG 2017...Amazon Web Services
 
AWS Customer Presentation - Angelbeat Princeton Seminar
AWS Customer Presentation -  Angelbeat Princeton SeminarAWS Customer Presentation -  Angelbeat Princeton Seminar
AWS Customer Presentation - Angelbeat Princeton SeminarAmazon Web Services
 
Going Global with AWS: Customer Case Study with Bynder
Going Global with AWS: Customer Case Study with BynderGoing Global with AWS: Customer Case Study with Bynder
Going Global with AWS: Customer Case Study with BynderAmazon Web Services
 
Creating a Data Driven Culture with Amazon QuickSight - Technical 201
Creating a Data Driven Culture with Amazon QuickSight - Technical 201Creating a Data Driven Culture with Amazon QuickSight - Technical 201
Creating a Data Driven Culture with Amazon QuickSight - Technical 201Amazon Web Services
 
AWS re:Invent 2016: IoT: Build, Test, and Securely Scale (GPST302)
AWS re:Invent 2016: IoT: Build, Test, and Securely Scale (GPST302)AWS re:Invent 2016: IoT: Build, Test, and Securely Scale (GPST302)
AWS re:Invent 2016: IoT: Build, Test, and Securely Scale (GPST302)Amazon Web Services
 
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017Amazon Web Services
 
Intro Presentation at AWS AWSome Day Dublin July 2015
Intro Presentation at AWS AWSome Day Dublin July 2015Intro Presentation at AWS AWSome Day Dublin July 2015
Intro Presentation at AWS AWSome Day Dublin July 2015Ian Massingham
 
Modern Data Architectures for Business Insights at Scale
Modern Data Architectures for Business Insights at Scale Modern Data Architectures for Business Insights at Scale
Modern Data Architectures for Business Insights at Scale Amazon Web Services
 
Big Data & Analytics: End to End on AWS - Technical 101
Big Data & Analytics: End to End on AWS - Technical 101Big Data & Analytics: End to End on AWS - Technical 101
Big Data & Analytics: End to End on AWS - Technical 101Amazon Web Services
 
Building a Data Processing Pipeline on AWS
Building a Data Processing Pipeline on AWSBuilding a Data Processing Pipeline on AWS
Building a Data Processing Pipeline on AWSAmazon Web Services
 
AWS Cloud School Introductory Presentation
AWS Cloud School Introductory PresentationAWS Cloud School Introductory Presentation
AWS Cloud School Introductory PresentationIan Massingham
 

What's hot (20)

Monitoring, Hold the Infrastructure - Getting the Most out of AWS Lambda - AW...
Monitoring, Hold the Infrastructure - Getting the Most out of AWS Lambda - AW...Monitoring, Hold the Infrastructure - Getting the Most out of AWS Lambda - AW...
Monitoring, Hold the Infrastructure - Getting the Most out of AWS Lambda - AW...
 
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
 
8 ways to leverage AWS Lambda in your Big Data workloads
8 ways to leverage AWS Lambda in your Big Data workloads8 ways to leverage AWS Lambda in your Big Data workloads
8 ways to leverage AWS Lambda in your Big Data workloads
 
Trova ed utilizza in modo sicuro nel Cloud il software che ti serve con l'AWS...
Trova ed utilizza in modo sicuro nel Cloud il software che ti serve con l'AWS...Trova ed utilizza in modo sicuro nel Cloud il software che ti serve con l'AWS...
Trova ed utilizza in modo sicuro nel Cloud il software che ti serve con l'AWS...
 
Building a Data Processing Pipeline on AWS - AWS Summit SG 2017
Building a Data Processing Pipeline on AWS - AWS Summit SG 2017Building a Data Processing Pipeline on AWS - AWS Summit SG 2017
Building a Data Processing Pipeline on AWS - AWS Summit SG 2017
 
Industry 4.0: come i servizi IoT e Big Data di AWS rendono Smart il Manufactu...
Industry 4.0: come i servizi IoT e Big Data di AWS rendono Smart il Manufactu...Industry 4.0: come i servizi IoT e Big Data di AWS rendono Smart il Manufactu...
Industry 4.0: come i servizi IoT e Big Data di AWS rendono Smart il Manufactu...
 
Semplificare l'analisi dei dati con architetture "Serverless": architetture e...
Semplificare l'analisi dei dati con architetture "Serverless": architetture e...Semplificare l'analisi dei dati con architetture "Serverless": architetture e...
Semplificare l'analisi dei dati con architetture "Serverless": architetture e...
 
Getting started with Serverless on AWS
Getting started with Serverless on AWSGetting started with Serverless on AWS
Getting started with Serverless on AWS
 
Lessons & Use-Cases at Scale - Dr. Pete Stanski
Lessons & Use-Cases at Scale - Dr. Pete StanskiLessons & Use-Cases at Scale - Dr. Pete Stanski
Lessons & Use-Cases at Scale - Dr. Pete Stanski
 
SQL Strikes Back! Options for Large Scale SQL Analytics - AWS Summit SG 2017...
SQL Strikes Back! Options for Large Scale SQL Analytics - AWS Summit SG  2017...SQL Strikes Back! Options for Large Scale SQL Analytics - AWS Summit SG  2017...
SQL Strikes Back! Options for Large Scale SQL Analytics - AWS Summit SG 2017...
 
AWS Customer Presentation - Angelbeat Princeton Seminar
AWS Customer Presentation -  Angelbeat Princeton SeminarAWS Customer Presentation -  Angelbeat Princeton Seminar
AWS Customer Presentation - Angelbeat Princeton Seminar
 
Going Global with AWS: Customer Case Study with Bynder
Going Global with AWS: Customer Case Study with BynderGoing Global with AWS: Customer Case Study with Bynder
Going Global with AWS: Customer Case Study with Bynder
 
Creating a Data Driven Culture with Amazon QuickSight - Technical 201
Creating a Data Driven Culture with Amazon QuickSight - Technical 201Creating a Data Driven Culture with Amazon QuickSight - Technical 201
Creating a Data Driven Culture with Amazon QuickSight - Technical 201
 
AWS re:Invent 2016: IoT: Build, Test, and Securely Scale (GPST302)
AWS re:Invent 2016: IoT: Build, Test, and Securely Scale (GPST302)AWS re:Invent 2016: IoT: Build, Test, and Securely Scale (GPST302)
AWS re:Invent 2016: IoT: Build, Test, and Securely Scale (GPST302)
 
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
 
Intro Presentation at AWS AWSome Day Dublin July 2015
Intro Presentation at AWS AWSome Day Dublin July 2015Intro Presentation at AWS AWSome Day Dublin July 2015
Intro Presentation at AWS AWSome Day Dublin July 2015
 
Modern Data Architectures for Business Insights at Scale
Modern Data Architectures for Business Insights at Scale Modern Data Architectures for Business Insights at Scale
Modern Data Architectures for Business Insights at Scale
 
Big Data & Analytics: End to End on AWS - Technical 101
Big Data & Analytics: End to End on AWS - Technical 101Big Data & Analytics: End to End on AWS - Technical 101
Big Data & Analytics: End to End on AWS - Technical 101
 
Building a Data Processing Pipeline on AWS
Building a Data Processing Pipeline on AWSBuilding a Data Processing Pipeline on AWS
Building a Data Processing Pipeline on AWS
 
AWS Cloud School Introductory Presentation
AWS Cloud School Introductory PresentationAWS Cloud School Introductory Presentation
AWS Cloud School Introductory Presentation
 

Similar to Going Serverless at AWS Startup Day Bangalore

Serverless Architectural Patterns
Serverless Architectural PatternsServerless Architectural Patterns
Serverless Architectural PatternsAmazon Web Services
 
Wild rydes serverless website workshop
Wild rydes   serverless website workshopWild rydes   serverless website workshop
Wild rydes serverless website workshopAmazon Web Services
 
Serverless SaaS apllications on AWS
Serverless SaaS apllications on AWSServerless SaaS apllications on AWS
Serverless SaaS apllications on AWSAmazon Web Services
 
SRV304_Building High-Throughput Serverless Data Processing Pipelines
SRV304_Building High-Throughput Serverless Data Processing PipelinesSRV304_Building High-Throughput Serverless Data Processing Pipelines
SRV304_Building High-Throughput Serverless Data Processing PipelinesAmazon Web Services
 
Serverless Architectural Patterns
Serverless Architectural PatternsServerless Architectural Patterns
Serverless Architectural PatternsMonica Lora
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingAmazon Web Services
 
Forza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni ServerlessForza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni ServerlessAmazon Web Services
 
SRV315 Building Enterprise-Grade Serverless Apps
 SRV315 Building Enterprise-Grade Serverless Apps SRV315 Building Enterprise-Grade Serverless Apps
SRV315 Building Enterprise-Grade Serverless AppsAmazon Web Services
 
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWSServerless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWSCodeOps Technologies LLP
 
Serverless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesServerless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesVladimir Simek
 
Getting Started with AWS Lambda and Serverless
Getting Started with AWS Lambda and ServerlessGetting Started with AWS Lambda and Serverless
Getting Started with AWS Lambda and ServerlessAmazon Web Services
 
Getting Started with AWS Lambda & Serverless Computing - Kashif Imran.pdf
Getting Started with AWS Lambda & Serverless Computing - Kashif Imran.pdfGetting Started with AWS Lambda & Serverless Computing - Kashif Imran.pdf
Getting Started with AWS Lambda & Serverless Computing - Kashif Imran.pdfAmazon Web Services
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesAmazon Web Services
 
Serverless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversServerless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversAmazon Web Services
 
Serverless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless EventServerless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless EventBoaz Ziniman
 
NET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
NET203_Using Amazon VPC Flow Logs to Do Predictive Security AnalyticsNET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
NET203_Using Amazon VPC Flow Logs to Do Predictive Security AnalyticsAmazon Web Services
 
NET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
NET203_Using Amazon VPC Flow Logs to Do Predictive Security AnalyticsNET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
NET203_Using Amazon VPC Flow Logs to Do Predictive Security AnalyticsAmazon Web Services
 
Getting Started with AWS Lambda Serverless Computing
Getting Started with AWS Lambda Serverless ComputingGetting Started with AWS Lambda Serverless Computing
Getting Started with AWS Lambda Serverless ComputingAmazon Web Services
 
AWS Security Week: CAF Detective Controls - Gain Visibility & Record Change
AWS Security Week: CAF Detective Controls - Gain Visibility & Record ChangeAWS Security Week: CAF Detective Controls - Gain Visibility & Record Change
AWS Security Week: CAF Detective Controls - Gain Visibility & Record ChangeAmazon Web Services
 

Similar to Going Serverless at AWS Startup Day Bangalore (20)

Serverless Architectural Patterns
Serverless Architectural PatternsServerless Architectural Patterns
Serverless Architectural Patterns
 
Wild rydes serverless website workshop
Wild rydes   serverless website workshopWild rydes   serverless website workshop
Wild rydes serverless website workshop
 
Serverless SaaS apllications on AWS
Serverless SaaS apllications on AWSServerless SaaS apllications on AWS
Serverless SaaS apllications on AWS
 
SRV304_Building High-Throughput Serverless Data Processing Pipelines
SRV304_Building High-Throughput Serverless Data Processing PipelinesSRV304_Building High-Throughput Serverless Data Processing Pipelines
SRV304_Building High-Throughput Serverless Data Processing Pipelines
 
Serverless Architectural Patterns
Serverless Architectural PatternsServerless Architectural Patterns
Serverless Architectural Patterns
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
Forza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni ServerlessForza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni Serverless
 
SRV315 Building Enterprise-Grade Serverless Apps
 SRV315 Building Enterprise-Grade Serverless Apps SRV315 Building Enterprise-Grade Serverless Apps
SRV315 Building Enterprise-Grade Serverless Apps
 
Deep Dive on the IoT at AWS
Deep Dive on the IoT at AWSDeep Dive on the IoT at AWS
Deep Dive on the IoT at AWS
 
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWSServerless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
 
Serverless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesServerless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best Practices
 
Getting Started with AWS Lambda and Serverless
Getting Started with AWS Lambda and ServerlessGetting Started with AWS Lambda and Serverless
Getting Started with AWS Lambda and Serverless
 
Getting Started with AWS Lambda & Serverless Computing - Kashif Imran.pdf
Getting Started with AWS Lambda & Serverless Computing - Kashif Imran.pdfGetting Started with AWS Lambda & Serverless Computing - Kashif Imran.pdf
Getting Started with AWS Lambda & Serverless Computing - Kashif Imran.pdf
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
Serverless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversServerless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about servers
 
Serverless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless EventServerless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless Event
 
NET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
NET203_Using Amazon VPC Flow Logs to Do Predictive Security AnalyticsNET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
NET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
 
NET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
NET203_Using Amazon VPC Flow Logs to Do Predictive Security AnalyticsNET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
NET203_Using Amazon VPC Flow Logs to Do Predictive Security Analytics
 
Getting Started with AWS Lambda Serverless Computing
Getting Started with AWS Lambda Serverless ComputingGetting Started with AWS Lambda Serverless Computing
Getting Started with AWS Lambda Serverless Computing
 
AWS Security Week: CAF Detective Controls - Gain Visibility & Record Change
AWS Security Week: CAF Detective Controls - Gain Visibility & Record ChangeAWS Security Week: CAF Detective Controls - Gain Visibility & Record Change
AWS Security Week: CAF Detective Controls - Gain Visibility & Record Change
 

Recently uploaded

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Recently uploaded (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 

Going Serverless at AWS Startup Day Bangalore

  • 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Madhusudan Shekar @madhushekar23 AWS Startup Day Going Serverless
  • 2. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. We know this…
  • 3. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Owning Servers means… Operations and management Scaling Provisioning and utilization Availability and fault tolerance
  • 4. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Going Serverless… Code is all you need Event driven scaling Never pay for idle Availability and fault tolerance built in
  • 5. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Many different use cases • Analytics • Operational management • Live Dashboards • Data workflows • Content management • ETL workflows • Interactive Backends • Bots • Webhooks • Autonomous IT • Policy engines • Infrastructure management
  • 6. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Serverless offerings And more !! Lambda DynamoDB S3 Kinesis
  • 7. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda
  • 8. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is Lambda Functions are the unit of deployment and scaling.
  • 9. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How Lambda works S3 event notifications DynamoDB Streams Kinesis events Cognito events SNS events Custom events CloudTrail events LambdaDynamoDB Kinesis S3 Any custom Redshift SNS CloudWatch events
  • 10. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. But what really *is* AWS Lambda? • Linux containers as an implementation, not a programming or deployment abstraction – Process and network isolation, cgroups, seccomp, … • Predictive capacity management – Purpose-built, massively scaled language runtime delivery service • Swagger interpreter (API Gateway) • Cold vs Hot state
  • 11. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How does a Lambda function looks like? def hello(event, context): return { "message": ”Hello World!", "event": event } 'use strict'; handlermodule.exports.hello = (event, context, cb) => cb(null, { message: ’Hello World!', event } );
  • 12. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Continuous scaling No servers to manage Never pay for idle – no cold servers Benefits of AWS Lambda
  • 13. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pay-per request • Buy compute time in 100 ms increments • Low request charge • No hourly, daily, or monthly minimums • No per-device fees Never pay for idle! Free Tier 1 million requests and 400,000 GBs of compute every month, every customer
  • 14. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Using AWS Lambda • Bring your own code • Node.js, Java, Python • Bring your own libraries (even native ones) Simple resource model • Select power rating from 128 MB to 1.5 GB • CPU and network allocated proportionately • Reports actual usage Flexible authorization • Securely grant access to resources, including VPCs • Fine-grained control over who can call your functions Flexible use • Call or send events • Integrated with other AWS services • Build whole serverless ecosystems
  • 15. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Using AWS Lambda • Programming model • AWS SDK built in (Python and Node.js) • Lambda is the front end • Use processes, threads, /tmp, sockets normally Stateless • Persist data using Amazon DynamoDB, S3, or ElastiCache • No affinity to infrastructure (can’t “log in to the box”) Authoring functions • Author directly using the console WYSIWYG editor • Package code as a .zip and upload to Lambda or S3 • Plugins for Eclipse and Visual Studio • Command line tools Monitoring and logging • Built-in metrics for requests, errors, latency, and throttles • Built-in logs in Amazon CloudWatch Logs
  • 16. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Key scenarios Data Triggers Customize behavior on data updates in S3, SNS and DDB Control systems Customize responses and response workflows to state changes within AWS Serverless backends Execute server side backend logic in a cross platform fashion Big data Realtime processing of streaming data updates using Kinesis
  • 17. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Monitoring and debugging Lambda Functions • AWS Lambda console includes a dashboard for functions • Lists all Lambda functions • Easy editing of resources, event sources and other settings • At-a-glance metrics • Metrics automatically reported to Amazon CloudWatch for each Lambda function • Requests • Errors • Latency • Throttles • Logs captured by Amazon CloudWatch Logging service
  • 18. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Calling Lambda over the Internet – REST API HTTP
  • 19. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. API Gateway APIs for Lambda
  • 20. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Calling Lambda over the Internet using API Gateway HTTP
  • 21. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Managed API Gateway managed model InternetMobile apps AWS Lambda functions AWS API Gateway cache Endpoints on Amazon EC2 Any other publicly accessible endpoint Amazon CloudWatch Amazon CloudFront API Gateway API Gateway Other AWS services AWS Lambda functions
  • 22. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Benefits of Amazon API Gateway Create a unified API front end for multiple microservices DDoS protection and throttling for back-end systems Authenticate and authorize requests
  • 23. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda + Cloudwatch Events
  • 24. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Security and Conformity • “Trust but verify” with high confidence via events. • Deployments verified with every change. • Lambda guarantees that each instance is in compliance with defined security rules. • Triggers shutdown of violations and notifications. • Compliance and readiness rules can be validated with every resource change.
  • 25. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Tagging resources as they start
  • 26. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda + Schedulers
  • 27. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Scheduled Event (CRON) • Dev/QA Environments: Stop running instances at 19:00 h and Start it again at 8:00 between Monday to Friday. • Log cleanup • Batching up statistics • Alarm clock • Infrastructure automation • Backup scheduler
  • 28. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Backup and Disaster Recovery • Cross-region replication to multiple regions. • Off-site backups. • Validation of those backups is difficult to scale. • Set rules on Lambda that defines what needs to be backup and checks • Validates and raise alarms in case of failure.
  • 29. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Start/Shutdown of Instances https://github.com/pebo/cloud-nanny
  • 30. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda + S3
  • 31. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Dynamic data ingestion using S3+Lambda Amazon S3 AWS Lambda processes the object Amazon S3 New object uploaded Amazon DynamoDB
  • 32. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Customers running S3 + Lambda pipelines AWS Lambda Indexing tables or notifications Apply custom logic to process content being uploaded into S3. • Watermarking / thumbnailing • Transcoding • Indexing and deduplication • Aggregation and filtering • Pre processing • Content validation • WAF updates Amazon S3 Bucket Events Processed files
  • 33. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Resize images to thumbnails • Example: Amazon S3 bucket triggers Amazon S3 bucket events Original object Compressed object 1 2 3 AWS Lambda
  • 34. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda + Kinesis
  • 35. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Real time stream processing with Kinesis+Lambda Amazon Kinesis AWS Lambda processes the stream Amazon CloudWatch Logs Amazon SNS New data available
  • 36. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Customers using real-time processing pipelines AWS Lambda Aggregate statistics Real-time analytics Kinesis Stream Apply custom logic to process data being uploaded through Kinesis stream • Client activity tracking • Metrics generation • Data cleansing • Log filtering • Indexing and searching • Log routing • Live alarms and notifications
  • 37. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Real-Time Analytics
  • 38. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda + DynamoDB
  • 39. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Triggers Workflow Using DynamoDB & Lambda New data available Amazon DynamoDB AWS Lambda Amazon DynamoDB Amazon Redshift
  • 40. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Indexing DynamoDB content using ElasticSearch
  • 41. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda + SNS
  • 42. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Real-Time Message Handling Workflow Using SNS & Lambda New message published Amazon SNS AWS Lambda Amazon SNS Amazon Kinesis
  • 43. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Example workloads on SNS+Lambda AWS Lambda Amazon SNS “I want to run custom logic in response to my CloudWatch Alarms” “I want to customize messages before publishing them to my target audience” “I want to execute custom code when new messages are posted on my (SNS) message bus” Amazon CloudWatch On-prem events Customized message
  • 44. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda Powered APIs
  • 45. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. An API Call Flow Internet Mobile Apps Websites Services API Gateway AWS Lambda functions AWS API Gateway Cache Endpoints on Amazon EC2 Any other publicly accessible endpoint Amazon CloudWatch Monitoring Amazon CloudFront
  • 46. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless URL Shortener
  • 47. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SMS powered Lambda with Twillio { "body" : "$input.params('Body')", "fromNumber" : "$input.params('From')", "numMedia" : "$input.params('NumMedia')" } LambdaAPI GatewayTwilio SMS integration - webhook Twilio Call API
  • 48. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda + Mobile Apps
  • 49. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Building Mobile Backends with Lambda • Lambda as the backend logic for mobile applications. • Easy Personalization – … for devices – … for end users
  • 50. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambda + Alexa
  • 51. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alexa apps + Slack = serverless bots! Alexa, tell Slack to send, “I’m giving the demo now.” Message retrieval through scheduled polling Kevin says, “Break a leg!” Message upload (via Slack API) Team (channel users) Slack
  • 52. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Developing Lambda How-to
  • 53. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Serverless Application Model (SAM) • AWS CloudFormation extension optimized for serverless • New serverless resource types: functions, APIs, and tables • Supports anything CloudFormation supports • Open specification (Apache 2.0)
  • 54. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SAM Template AWSTemplateFormatVersion: '2010-09-09’ Transform: AWS::Serverless-2016-10-31 Resources: GetHtmlFunction: Type: AWS::Serverless::Function Properties: CodeUri: s3://sam-demo-bucket/todo_list.zip Handler: index.gethtml Runtime: nodejs4.3 Policies: AmazonDynamoDBReadOnlyAccess Events: GetHtml: Type: Api Properties: Path: /{proxy+} Method: ANY ListTable: Type: AWS::Serverless::SimpleTable
  • 55. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless (previously Jaws) • http://serverless.com – New Release: Serverless V1.0 Beta 2 • Supports Node.js, Python & Java. • Manages the lifecycle of your serverless architecture (build, deploy, update, delete). • Safely deploy functions, events and their required resources together via provider resource managers (e.g., AWS CloudFormation). • Functions can be grouped ("serverless services") for easy management of code, resources & processes, across large projects & teams. • Built-in support for multiple stages. • Logging support (serverless logs --function myfunction)
  • 56. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Chalice - Python Serverless Microframework for AWS • Allows to quickly create and deploy applications • It provides: – A command line tool for creating, deploying, and managing your app – A familiar and easy to use API for declaring views in python code – Automatic IAM policy generation – Logging support (chalice logs)
  • 57. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Python Serverless Microframework for AWS
  • 58. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CloudFormation • All in one template • Versioned with GIT
  • 59. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Custom projects • Bash scripts – Create roles and policies – Deploy functions & gateways • Versioned with GIT • Locally tests (emulambda)
  • 60. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Emulambda - Python emulator for AWS Lambda >> emulambda nanny.lambda_handler - -v < event_bedtime.json
  • 61. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. lambda-local - NodeJS emulator for AWS Lambda >> lambda-local -l index.js -h handler -e event-samples/s3-put.js
  • 62. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SAM Local – CLI tool to test Lambda locally • Develop and test your Lambda functions locally with sam local and Docker • Invoke functions from known event sources such as Amazon S3, Amazon DynamoDB, Amazon Kinesis, etc. • Start local API Gateway from a SAM template, and quickly iterate over your functions with hot-reloading • Validate SAM templates
  • 63. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The serverless compute manifesto • Functions are the unit of deployment and scaling. • No machines, VMs, or containers visible in the programming model. • Permanent storage lives elsewhere. • Scales per request. Users cannot over- or under-provision capacity. • Never pay for idle resources. • Implicitly fault-tolerant because functions can run anywhere. • BYOC – Bring your own code and ALWAYS package dependencies • Metrics and logging are a universal right. • Turn VPC on only if necessary.
  • 64. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank You! Madhusudan Shekar Twitter: @madhushekar23 LinkedIn: /in/madhusudanshekar

Editor's Notes

  1. Able to land a function in the environment in about 1ms.
  2. What developers really want to focus on is the application code. And you want to be sure that when your application code is running, you will get the resources needed automatically without having to provision your infrastructure. The infrastructure is automatically scaled up and down on your behalf by the system when a event gets to process –> very good for micro services. Event driven scale: Lambda will match the rate of events for you. No provisioning, the event is the trigger for the provisioning happening underneath the service. Sub-second billing: no worry about what to do when the application is not running. Pay for what you use. 100% utilization Security at each steps along the way!
  3. Bring your own code. Simple resource model: only one thing that needs to be configured -> memory. CPU and Network is allocated proportionately which means tha t a 256MB function will have twice the CPU and Network as a 128MB one. Flexible use: trigger or invoke synchronously or asynchonously. Hook up with many othe other AWS services Use IAM roles under the hood. So you can very fine grain security so you can for example say my lambda function can access only one particular S3 bucket. VPC integration makes it even more control over what your lambda funciton can and cannot do.
  4. Build your function the same way you would do in your standard enviroment (threads.. ) Deploy using existing tools and plugins, cli tools and frameworks (demo) Lambda function are stateless so you need to use S3, elasticache or dynamodb to persist the state so you can excahneg data betweene functions. Use Amazon Cloudwatch for monitoring
  5. The first thing we want to look at is the standard flow of an API call, including all components in the system First, a request comes in from a client, this could be a mobile device, a web application or a backend service The requests arrives at one of our CloudFront PoP locations, it’s accepted and routed through to the API Gateway in the customer’s region The API Gateway receives the request, then checks for records in the dedicated cache (if it is configured). If there are no cached records available then it will forward the request to the backend for processing The backend can be a Lambda function, a web service running on Amazon EC2, or any other publicly accessible web service Once the backend has processed the request the API call metrics are logged in Amazon CloudWatch and the content is returned to the client
  6. verify data formats, audit out-of-range values, filter and copy data to other tables
  7. verify data formats, audit out-of-range values, filter and copy data to other tables
  8. verify data formats, audit out-of-range values, filter and copy data to other tables
  9. The first thing we want to look at is the standard flow of an API call, including all components in the system First, a request comes in from a client, this could be a mobile device, a web application or a backend service The requests arrives at one of our CloudFront PoP locations, it’s accepted and routed through to the API Gateway in the customer’s region The API Gateway receives the request, then checks for records in the dedicated cache (if it is configured). If there are no cached records available then it will forward the request to the backend for processing The backend can be a Lambda function, a web service running on Amazon EC2, or any other publicly accessible web service Once the backend has processed the request the API call metrics are logged in Amazon CloudWatch and the content is returned to the client
  10. verify data formats, audit out-of-range values, filter and copy data to other tables
  11. AWS SAM is a new specification that extends CloudFormation, and is optimized for serverless. It allows you to define 3 resource types commonly used in serverless applications, in a simpler and cleaner way: Lambda function, API Gateway APIs, and DynamoDB tables. It’s worth noting that SAM in its core, is a CloudFormation template. That means you can define any CloudFormation resource in your SAM template, to go along with your serverless resources.
  12. Let’s go over a SAM template to understand the specification better: First, we are defining a serverless function, which is transformed into a Lambda function under the covers. The first property specified is CodeUri. This property receives a URI that points to an S3 object. When CloudFormation creates my Lambda function it refers to this URI to retrieve the function’s deployment package. The next property I’d like you to pay attention to, is policies. The managed policies that you specify here will be included in the execution role that CloudFormation will generate for your Lambda function. Next, we are defining the function’s event source, which in this case is an API. Notice that I don’t need to explicitly define an API as a separate resource. Specifying an API as my function’s event source is sufficient for CloudFormation to generate an API with the specified characteristics for me. Lastly, I’m defining a DynamoDB table using the simpleTable. This shortcut will generate a DynamoDB table with a single attribute primary key, with a provisioned throughput of 5. The key piece that makes all of this possible, is the transform capability CloudFormation introduced. When you specify the serverless transform, then under the covers, CloudFormation turns this template into a regular CloudFormation template. CouldFormation then uses that template to generate my resources.