Building Serverless Applications with Lambda Craig Golightly SENIOR SOFTWARE CONSULTANT @seethatgo www.seethatgo.com
Overview What is a serverless application? How AWS Lambda works Serverless architectures Demo: API Gateway and Lambda
Serverless No server Flexible scaling High availability No idle capacity management
AWS Lambda Compute layer for serverless Functions - Code to execute - Configuration how to execute - Event sources (optional) Always on, automatically scales Functions are stateless
Lambda Execution Event Source
Creating Your Lambda Function AWS Cloud Native language support Lambda S3 bucket Function code package Lambda runtime - Stored in S3 - Size limit Lambda Layers + API - Zip archive - Keep code package small - Avoid dependency errors
Lambda Pricing CPU and network 100ms increments Test and measure capacity Rate based on Memory settings to Increase as allocate memory allocation optimize execution cost more memory
Lambda with S3 and SNS Object S3 Data SNS
Lambda with SQS and Kinesis SQS Queue Message Data Kinesis Data Streams
Lambda with Lex and Cloudwatch Chatbot Lex Event CloudWatch (cron replacement) (time-based)
Amazon API Gateway HA, scalable, managed service for APIs - Authentication and authorization - Throttling, metering, caching Manage requests / responses - Lambda functions Key component for serverless web apps - Meets serverless criteria “AWS Networking and the API Gateway” course
Serverless Developer Tools AWS Serverless AWS, open source, Architecture Model third-party (SAM) Local Lambda Shorthand syntax environment CloudFormation Access logs and metrics templates from deployed functions
AWS Serverless Application Repository Managed serverless repository - Browse serverless applications Publish your own application IAM resource level access - Private - Specific AWS accounts - Share publicly
Demo AWS Serverless Application Repository - Deploy serverless app CloudFormation API Gateway - Calls Lambda function
Criteria for serverless applications Summary Lambda is compute component - Using with other AWS services How Lambda functions work AWS Serverless Application Repository - API Gateway to trigger Lambda
Up Next: Running Containers on AWS
Recommend
More recommend