AWS Lambda: Event-driven Code in the Cloud

Similar documents
Zombie Apocalypse Workshop

Microservices without the Servers: AWS Lambda in Action

How to go serverless with AWS Lambda

AWS Lambda. 1.1 What is AWS Lambda?

Serverless Architecture Hochskalierbare Anwendungen ohne Server. Sascha Möllering, Solutions Architect

BERLIN. 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

AWS Mobile Hub. Build, Test, and Monitor Your Mobile Apps. Daniel Geske, Solutions Architect 31 May 2017

AWS Lambda in (a bit of) theory and in action. Adam Smolnik

Going Serverless. Building Production Applications Without Managing Infrastructure

Develop and test your Mobile App faster on AWS

Containers or Serverless? Mike Gillespie Solutions Architect, AWS Solutions Architecture

Serverless Computing. Redefining the Cloud. Roger S. Barga, Ph.D. General Manager Amazon Web Services

Amazon Search Services. Christoph Schmitter

Getting Started with AWS IoT

Immersion Day. Getting Started with AWS Lambda. August Rev

ARCHITECTING WEB APPLICATIONS FOR THE CLOUD: DESIGN PRINCIPLES AND PRACTICAL GUIDANCE FOR AWS

Building Secure and Scalable Mobile Apps on AWS

How to Route Internet Traffic between A Mobile Application and IoT Device?

AWS 101. Patrick Pierson, IonChannel

Deep Dive Amazon Kinesis. Ian Meyers, Principal Solution Architect - Amazon Web Services

AWS Lambda + nodejs Hands-On Training

Managing IoT and Time Series Data with Amazon ElastiCache for Redis

Serverless The Future of the Cloud?!

SAMPLE CHAPTER. Event-driven serverless applications. Danilo Poccia. FOREWORD BY James Governor MANNING

MONITORING SERVERLESS ARCHITECTURES

Microservices on AWS. Matthias Jung, Solutions Architect AWS

Microservices Architekturen aufbauen, aber wie?

Emulating Lambda to speed up development. Kevin Epstein CTO CorpInfo AWS Premier Partner

Machine Learning per le tue applicazioni: come apprendere dai dati

Reactive Microservices Architecture on AWS

Diving into AWS Lambda

Enroll Now to Take online Course Contact: Demo video By Chandra sir

This document (including, without limitation, any product roadmap or statement of direction data) illustrates the planned testing, release and

DevOps Tooling from AWS

MOBILE APP FOR ACME INC. by Sean Hull - Cloud Solutions Architect -

Security Aspekts on Services for Serverless Architectures. Bertram Dorn EMEA Specialized Solutions Architect Security and Compliance

Energy Management with AWS

Automating Elasticity. March 2018

At Course Completion Prepares you as per certification requirements for AWS Developer Associate.

Serverless Architectures with AWS Lambda. David Brais & Udayan Das

Amazon Machine Learning

About Intellipaat. About the Course. Why Take This Course?

Intro to Big Data on AWS Igor Roiter Big Data Cloud Solution Architect

Startups and Mobile Apps on AWS. Dave Schappell, Startup Business Development Manager, AWS September 11, 2013

Securing Serverless Architectures

Automate best practices and operational health for your AWS resources with Trusted Advisor and AWS Health

Werden Sie ein Teil von Internet der Dinge auf AWS. AWS Enterprise Summit 2015 Dr. Markus Schmidberger -

AWS IoT Overview. July 2016 Thomas Jones, Partner Solutions Architect

AWS Certifications. Columbus Amazon Web Services Meetup - February 2018

Getting Started with AWS Security

How can you implement this through a script that a scheduling daemon runs daily on the application servers?

Building Games with AWS Mobile Services

Video on Demand on AWS

Accenture Cloud Platform Serverless Journey

Gabriel Villa. Architecting an Analytics Solution on AWS

Build, Deploy & Operate Intelligent Chatbots with Amazon Lex

The Orion Papers. AWS Solutions Architect (Associate) Exam Course Manual. Enter

AWS Agility + Splunk Visibility = Cloud Success. Splunk App for AWS Demo. Laura Ripans, AWS Alliance Manager

Introduction to Amazon Lumberyard and GameLift

How to use or not use the AWS API Gateway for Microservices

Lean & Mean on AWS: Cost-Effective Architectures. Constantin Gonzalez, Solutions Architect, AWS

Cloud Analytics and Business Intelligence on AWS

Splunk & AWS. Gain real-time insights from your data at scale. Ray Zhu Product Manager, AWS Elias Haddad Product Manager, Splunk

AWS Connected Vehicle Cloud

PracticeDump. Free Practice Dumps - Unlimited Free Access of practice exam

AWS Serverless Architecture Think Big

Introduction to Amazon Web Services. Jeff Barr Senior AWS /

SAA-C01. AWS Solutions Architect Associate. Exam Summary Syllabus Questions

Aurora, RDS, or On-Prem, Which is right for you

Exam Questions AWS-Certified- Developer-Associate

IoT Device Simulator

AWS Solution Architecture Patterns

What s New at AWS? A selection of some new stuff. Constantin Gonzalez, Principal Solutions Architect, Amazon Web Services

Introducing Amazon Elastic File System (EFS)

AWS Solution Architect Associate

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

Design Patterns for the Cloud. MCSN - N. Tonellotto - Distributed Enabling Platforms 68

Experiences with Serverless Big Data

Managing and Auditing Organizational Migration to the Cloud TELASA SECURITY

Container 2.0. Container: check! But what about persistent data, big data or fast data?!

AWS_SOA-C00 Exam. Volume: 758 Questions

Lambda Architecture for Batch and Stream Processing. October 2018

Oracle WebLogic Server 12c on AWS. December 2018

Level Up Your CF Apps with Amazon Web Services

Monitoring Serverless Architectures in AWS

Serverless in the Java ecosystem

What s New at AWS? looking at just a few new things for Enterprise. Philipp Behre, Enterprise Solutions Architect, Amazon Web Services

Store, Protect, Optimize Your Healthcare Data in AWS

Planning an architecture for the. Internet of Things. IoT Expo, Nov 5, Sumit Sharma Director, API Solutions.

IBM Bluemix platform as a service (PaaS)

AWS Solutions Architect Associate (SAA-C01) Sample Exam Questions

Amazon Web Services. Block 402, 4 th Floor, Saptagiri Towers, Above Pantaloons, Begumpet Main Road, Hyderabad Telangana India

Container-Native Storage

Techno Expert Solutions

Real-time Streaming Applications on AWS Patterns and Use Cases

CIT 668: System Architecture. Amazon Web Services

Upper- Intermediate. Senior Front end Developer. First Name Denis V. Birth Date Professional experience (years) 4.5

Developing Enterprise Cloud Solutions with Azure

Pontoon An Enterprise grade serverless framework using Kubernetes Kumar Gaurav, Director R&D, VMware Mageshwaran R, Staff Engineer R&D, VMware

Vernetzte Fahrerassistenzsysteme (BMW + AWS ) Hazard Preview

Transcription:

AWS Lambda: Event-driven Code in the Cloud Dean Bryen, Solutions Architect AWS Andrew Wheat, Senior Software Engineer - BBC April 15, 2015 London, UK 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

Our customers had some relatively simple problems Maybe only 10 lines of code Think thumbnailing of an image or Validating the format of an address

That were solved with pretty complicated solutions Scaling Queuing Deployment Monitoring Logging Patching Instance upgrades

What if every AWS service could generate events? What if you could react to those events in a really simple way?

Event-Driven Compute in the Cloud Lambda functions: Stateless, request-driven code execution Triggered by events in other services: PUT to an Amazon S3 bucket Write to an Amazon DynamoDB table Record in an Amazon Kinesis stream Amazon SNS Message received Changes in Amazon Cognito data Makes it easy to Transform data as it reaches the cloud Perform data-driven auditing, analysis, and notification Kick off workflows

AWS Lambda General Availability Larger default limits 100 concurrent executions 1,000 invokes per second Increases available via AWS customer service Preview label removed Updated API based on feedback during preview Multiple Lambda functions per Kinesis stream

Data Triggers: Amazon S3 Original image Thumbnailed image 1 3 2 Amazon S3 Bucket Events AWS Lambda

Data Triggers Amazon Simple Notification Service CloudWatch Metric SNS Lambda Function

Data Triggers Amazon Cognito Cognito Lambda Function

Data Triggers: Amazon DynamoDB Update another table Amazon DynamoDB Table and Stream AWS Lambda Send SNS Push notifications

Data Triggers Amazon Kinesis IoT Device Kinesis Lambda DynamoDB

Dynamic content generation based on incoming news text and images Real time log processing for prediction analytics Thumbnailing installation site photos for mobile use Real time processing and recording of inbound traffic from a range of social media platforms Large scale distributed search across blog content Operational analytics and real time troubleshooting

Mobile Compute

Mobile Compute: Building Backends with Lambda Request/Response AWS Mobile SDK Easy Personalization for devices for end users Mobile App AWS Lambda

Event-Driven Compute in the Cloud and for Devices Request / response Create instantly scalable backends for mobile apps Run stateless computations for web apps without servers Build cloud-based IoT ecosystems using C/C++ libraries Complements the existing asynchronous functionality

AWS Mobile SDK Build high quality mobile apps quickly and easily. AWS Lambda now available in: AWS mobile SDK for Android AWS ios mobile SDK

Easy Personalization Which end user is this?? Which device is she using??

Key Benefits

No Infrastructure to Manage Automatically Scaling Bring Your Own Code Fine Grained Pricing

Demo: Synchronous functions with AWS Lambda

What We *Didn t* Have to Do: Provision software or hardware infrastructure Plan capacity Understand fault tolerance boundaries Write code to scale up and out Implement monitoring Update operating systems or language runtimes

Using AWS Lambda

Calling Lambda Functions Call from mobile or web apps Wait for a response or send an event and continue AWS SDK, AWS Mobile SDK, REST API, CLI Send events from Amazon S3 or SNS: One event per Lambda invocation, 3 attempts Process DynamoDB changes or Amazon Kinesis records as events: Ordered model with multiple records per event Unlimited retries (until data expires)

Writing Lambda Functions The Basics Stock node.js AWS SDK comes built in and ready to use Lambda handles inbound traffic Stateless Use S3, DynamoDB, or other Internet storage for persistent data Don t expect affinity to the infrastructure (you can t log in to the box ) Familiar Use processes, threads, /tmp, sockets, Bring your own libraries, even native ones

AWS Lambda or EC2 / ECS? AWS Lambda Request-driven Prioritizes ease of use one OS, default hardware choice AWS owns and manages the infrastructure Implicit scaling; just make requests Amazon EC2 and ECS Infrastructure rental Flexible choose instance type, OS, language, You own and configure the infrastructure Scale by provisioning instances or containers

Java You can already call Java programs from Lambda functions today Java and other languages are automatically included in your filesystem view don t wait to start using them! Freezing ensures you don t pay repeatedly for JVM boot We ll make this even easier with built-in support for AWS Lambda functions written in Java.

AWS Lambda 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

36bn minutes of video watched in 2012 Increased a lot in the last two years

Media Services Part of BBC Digital Existed before 2011, Perl system 24 Olympics 2012 live video streams September 2013 14h for delivery to 30 minutes August 2014 30 minutes for delivery to 3 minutes

Simulcast 24/7 adaptive bitrate streaming, without interruption 25 continuous video streams 70 continuous radio streams 30 temporary radio streams 24 temporary video streams How does my app know where to find the content?

Radio and Video Manifests Over 20,000 files Highly cacheable as they change about once a month Edit by hand? No way! Set of scripts that grew over time Error Prone Not reproducible

AWS Lambda Configuration is uploaded from SVN to S3 S3 Notifies Lambda Lambda reads the file from S3 and produces each of the 20,000 files Lambda puts the resulting files in a different bucket which the CDN references

Micro Services & Continuous Delivery 100+ small components Build, test, deploy, test, deploy Heavier Java components take 30 minutes for deployment Lighter JavaScript Lambda components take 3 minutes

Summary Java based require EC2 Lambda is another micro service deployment tool Quick You have probably made use of it

Three Next Steps 1. Go to the AWS console to create and test your first Lambda function. The first 1M requests each month are on us! 2. Use the AWS Mobile SDK and Lambda to quickly create an instantly scalable mobile app. 3. Use AWS Lambda to add custom logic to S3, DynamoDB, SNS, Kinesis, or Cognito events no servers required!

LONDON