AWS Lambda enables developers to build scalable applications without managing servers. Come learn how Lambda's event driven approach helps build backend ingestion systems, real time stream processing, and scalable API backends. We will deep dive into the different approaches that customers have taken to building applications with Lambda, typical architectures that customers use Lambda for, and best practices for authoring, deploying, and managing Lambda functions.
Speaker: Ajay Nair, Sr Product Manager Lambda, Amazon Web Services
2. What To Expect From This Session
• What does Serverless Compute mean?
• What can I Build with AWS Lambda?
• How do I Manage a Lambda Application?
• Hear how A Cloud Guru went Serverless
9. Application Components
EVENT SOURCE FUNCTION SERVICES (ANYTHING)
IAM roles
VPC configuration
Oauth Credentials
Changes in
data state
Requests to
endpoints
Changes in
resource state
Node
Python
Java
new!
19. Why Lambda
• Rapid Time To Market
• Majority of our code in a single code base
• One language front-end & back-end
• Need To Scale Fast and Effortlessly
• Disruptive Cost Model Enabled Disruptive Business
Model
• Hosting bill is tied directly, and only, to customer activity.
20. Web Application
Peter writes a comment Lambda Database Sam sees a commentAPI Gateway
Static JS/HTML Assets
on Cloud Front
CloudSearch
1
2 3 4 5
6
7
21. Video Transcoding
Peter uploads a file
LambdaDatabase
Source S3 Bucket Lambda Elastic Transcoder
Destination S3SNS
LambdaDestination S3 Lambda
22. What’s next –
Immutable Architectures
Production Deployment 1
Production Deployment 2
API GatewayUser’s Browser
Version 1
Version 2
24. Things To Remember: Lambda Function
ü Memory = “Power level”
q Higher levels offer more memory and more CPU power
ü Functions don’t have a notion of state
q Use DynamoDB, S3, or Elasticache
q Wrap your config in a function and call it from your published code
ü Use the right access control for downstream services
q IAM roles and permissions for AWS services
q VPC for private endpoints
q KMS for storing credentials for downstream endpoints
25. Things To Remember: Lambda Application
ü Lambda scales by events/requests
q Plan for concurrent request rate on downstream services
ü Shared scaling responsibility for VPC enabled functions
q Sufficient IPs to match your expected concurrency
q at least one subnet in each availability zone
ü Retries are built in for asynchronous and Stream invokes
q Plan for retries for synchronous applications
28. Best Practice – Use Versions And Aliases
Versions = Immutable copies of Code + Properties
Aliases = Mutable Pointers to Versions
ü Rollbacks
ü Staged
promotions
ü “Lock” behavior
for Client
32. Takeaways
• Many Applications can go Serverless
• Data processing, backends, triggers, webhooks
• Lambda Functions are Opinionated
• State, invocation modes, and deployments
• The Ecosystem continues to grow
• Tooling, languages, and application capabilities
33. re:Invent 2015
• Python
• Scheduled functions
• Longer running times (5 min.)
• Versioning
Recent Launches
2016
• Higher code storage limits
(from 5 GB to 75 GB)
• VPC
• New region: Frankfurt
• Nodejs 4.3.2
• 1-minute schedules
• New region: Sydney
34. Next steps
1. Go to console.aws.amazon.com/lambda and create
your first Lambda function. (The first 1M requests are
on us!)
2. Stay up-to-date with AWS Lambda on the Compute
blog and check out aws.amazon.com/lambda for
scenarios and customer stories
3. Send us your questions, comments, and feedback on
the AWS Lambda Forums.
Follow us on Twitter @ajaynairthinks, @samkroon
35. Check out these Serverless talks!
ü 3 PM – Technical 201: Building a Real Time Dashboard
with Amazon Kinesis, Amazon Lambda and Amazon
Elasticsearch
ü 4:30 PM – Technical 201: Building Scalable Services
with Amazon API Gateway
ü 12:15 (28th) – Technical 301: Building a Server-less Data
Lake on AWS
36. AWS Training & Certification
Intro Videos & Labs
Free videos and labs to
help you learn to work
with 30+ AWS services
– in minutes!
Training Classes
In-person and online
courses to build
technical skills –
taught by accredited
AWS instructors
Online Labs
Practice working with
AWS services in live
environment –
Learn how related
services work
together
AWS Certification
Validate technical
skills and expertise –
identify qualified IT
talent or show you
are AWS cloud ready
Learn more: aws.amazon.com/training
37. Your Training Next Steps:
ü Visit the AWS Training & Certification pod to discuss your
training plan & AWS Summit training offer
ü Register & attend AWS instructor led training
ü Get Certified
AWS Certified? Visit the AWS Summit Certification Lounge to pick up your swag
Learn more: aws.amazon.com/training