Microservices without the Servers: AWS Lambda in Action

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

Zombie Apocalypse Workshop

AWS Lambda: Event-driven Code in the Cloud

AWS Lambda. 1.1 What is AWS Lambda?

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

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

How to go serverless with AWS Lambda

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

Building Secure and Scalable Mobile Apps on AWS

Develop and test your Mobile App faster on AWS

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

Serverless The Future of the Cloud?!

Level Up Your CF Apps with Amazon Web Services

Going Serverless. Building Production Applications Without Managing Infrastructure

Getting Started with AWS IoT

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

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

Immersion Day. Getting Started with AWS Lambda. August Rev

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

Reactive Microservices Architecture on AWS

Microservices Architekturen aufbauen, aber wie?

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

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

IoT Device Simulator

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

Building Games with AWS Mobile Services

Diving into AWS Lambda

MONITORING SERVERLESS ARCHITECTURES

Microservices on AWS. Matthias Jung, Solutions Architect AWS

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

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

Introduction to Amazon Lumberyard and GameLift

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

AWS 101. Patrick Pierson, IonChannel

AWS Lambda + nodejs Hands-On Training

We are ready to serve Latest IT Trends, Are you ready to learn? New Batches Info

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

Build, Deploy & Operate Intelligent Chatbots with Amazon Lex

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

Experiences with Serverless Big Data

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

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

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

Developing Microsoft Azure Solutions (70-532) Syllabus

Developing Microsoft Azure Solutions (70-532) Syllabus

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

Energy Management with AWS

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

Managing IoT and Time Series Data with Amazon ElastiCache for Redis

Large-Scale Web Applications

Developing Microsoft Azure Solutions (70-532) Syllabus

EE 660: Computer Architecture Cloud Architecture: IaaS

Extend NonStop Applications with Cloud-based Services. Phil Ly, TIC Software John Russell, Canam Software

AWS Administration. Suggested Pre-requisites Basic IT Knowledge

Frankfurt 26 & 27 September 2018

Amazon Web Services and Feb 28 outage. Overview presented by Divya

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

Gabriel Villa. Architecting an Analytics Solution on AWS

AWS Connected Vehicle Cloud

Amazon Search Services. Christoph Schmitter

CIT 668: System Architecture. Amazon Web Services

Agenda. AWS Database Services Traditional vs AWS Data services model Amazon RDS Redshift DynamoDB ElastiCache

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

TestkingPass. Reliable test dumps & stable pass king & valid test questions

Accenture Cloud Platform Serverless Journey

WebJobs & Azure Functions in modern and Serverless applications. Paris Polyzos Software Engineer at ZuluTrade Inc Microsoft Azure MVP

Securing Serverless Architectures

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

Video on Demand on AWS

Serverless Architectures with AWS Lambda. David Brais & Udayan Das

Write On Aws. Aws Tools For Windows Powershell User Guide using the aws tools for windows powershell (p. 19) this section includes information about

Survey of the Azure Data Landscape. Ike Ellis

Testing in AWS. Let s go back to the lambda function(sample-hello) you made before. - AWS Lambda - Select Simple-Hello

Project Requirements Document v2

High School Technology Services myhsts.org Certification Courses

Vernetzte Fahrerassistenzsysteme (BMW + AWS ) Hazard Preview

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

Administrator Guide Administrator Guide

Cloud Analytics and Business Intelligence on AWS

AWS Solution Architect Associate

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

Store, Protect, Optimize Your Healthcare Data in AWS

Serverless Architecture meets Continuous Delivery. Andreas

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

MySQL Cluster Web Scalability, % Availability. Andrew

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

AWS plug-in. Qlik Sense 3.0 Copyright QlikTech International AB. All rights reserved.

Containers, Serverless and Functions in a nutshell. Eugene Fedorenko

Using AWS to Build a Large Scale Dockerized Microservices Architecture. Dr. Oliver Wahlen moovel Group GmbH Frankfurt, 30.

Amazon AWS-Solution-Architect-Associate Exam

WHITEPAPER AMAZON ELB: Your Master Key to a Secure, Cost-Efficient and Scalable Cloud.

DIY Hosting for Online Privacy. Shoumik Palkar and Matei Zaharia Stanford University

Back-end architecture

Connecting your Microservices and Cloud Services with Oracle Integration CON7348

Introduction to Amazon Web Services. Jeff Barr Senior AWS /

Homework 9: Stock Search Android App with Facebook Post A Mobile Phone Exercise


From Desktop to the Cloud with Forge

DevOps on AWS Deep Dive on Continuous Delivery and the AWS Developer Tools

Jan Metzner. Solutions Architect Mobile/IoT EMEA, Amazon Web Services. 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Transcription:

Microservices without the Servers: AWS Lambda in Action Dr. Tim Wagner, General Manager AWS Lambda August 19, 2015 Seattle, WA 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

Two Minute AWS Lambda Origin Story

Evolution of Storage Objects (files) Disks Data Center

Evolution of Storage: Cloud Store Amazon S3

Sharing = Lower Costs Amazon S3

Evolution of Storage Compute Functions Server Racks / VMs Data Center

Evolution of Compute Containers Amazon EC2 Container Service (ECS)

Evolution of Compute Amazon EC2 Container Service (ECS)

Evolution of Compute Amazon EC2 Container Service (ECS)

Evolution of Compute Containers Amazon EC2 Container Service (ECS)

Evolution of Compute Containers Amazon EC2 Container Service (ECS)

Evolution of Compute Containers Amazon EC2 Container Service (ECS)

Evolution of Compute: Lambda AWS Lambda

Sharing = Lower Costs AWS Lambda

The 2015 LinuxCon Challenge Build an image-processing microservice that Scales per request Can run native binaries and executables/processes Requires no deployment effort Fault tolerant and multi-region Includes both web and mobile clients

The Catch Do it without: Servers Monolithic app or explicit web service Explicit code for scaling or fault tolerance Paying for idle time and get it done in 45 minutes!

Serverless Microservice Architecture Static web content served from Amazon S3 Web Client Mobile Client Amazon API Gateway AWS Lambda + ImageMagick

Step 1 An ImageMagick Server in AWS Lambda

What we re going to do 1. Create an AWS Lambda function 1. Choice of languages (Java, nodejs, Scala, Clojure, ). We ll use nodejs to make it easy to edit in the console. 2. With nodejs on Lambda, ImageMagick is built in but you could also use PIL or 3 rd party libraries (even native ones). 2. Add a little code to indicate which command to run (convert, thumbnail, get metadata, etc.)

Diving Deeper: Resource Sizing AWS Lambda offers 23 power levels Higher levels offer more memory and more CPU power 128 MB, lowest CPU power 1.5 GB, highest CPU power Higher power levels == lower latency for CPUbound and bursty tasks Compute price scales with the power level

Step 2 Mobile App

Lambda Function == Mobile Backend AWS Lambda hosts and scales the code AWS Mobile SDK on the device ios, Android/Fire, Xamarin, Unity Device and user context sent automatically Mobile App AWS Lambda

What we re going to do 1. Create an app in Android studio, 2. Using Amazon Cognito to authenticate, 3. And a simple POJO to send images and commands to our AWS Lambda function

Step 3 Build a (serverless) multi-region deployment system

AWS Lambda Regions NEW Tokyo launched 6/29 AWS Lambda Region

Building a single-region Auto-Deployer Lambda ZIP Deployment Function Amazon S3 Bucket AWS Lambda

Building a multi-region Auto-Deployer Lambda ZIP Ireland Deployment Function Cross- Region Replication Amazon S3 Bucket Deployment Function AWS Lambda Tokyo Amazon S3 Bucket AWS Lambda

What we re going to do 1. Take a few lines of code that deploy an AWS Lambda function from Amazon S3 to a single region. 2. Turn it into an Amazon S3 event handler. 3. Upload our image processing microservice. 4. Turn on S3 cross-region replication. 5. Watch our function deploy automagically!

Step 4 Enable Web Clients using Amazon API Gateway

Serverless Microservice Architecture Static web content served from Amazon S3 Web Client Mobile Client Amazon API Gateway AWS Lambda + ImageMagick

Amazon API Gateway Host multiple versions and stages of your API Create and distribute API keys to developers Throttle and monitor calls Cache responses Transform data Generate SDKs (including Swagger support)

What we re going to do 1. Create and populate an image processing API 2. Test it from within Amazon API Gateway 3. Deploy it Not shown and needed for demo: CORS (see docs) Not shown, but supported: Vanity URL

Step 5 Testing

AWS Lambda as a Scalable Testing Platform Unit Testing Function HTTPS Invoke Function Image Processing Microservice Outcome stored in Amazon DynamoDB

AWS Lambda as a Scalable Testing Platform Unit Testing Function HTTPS Invoke Function Image Processing Microservice Unit Testing Function HTTPS Invoke Function Image Processing Microservice Load Testing Function Unit Testing Function Unit Testing Function HTTPS Invoke Function HTTPS Invoke Function Image Processing Microservice Image Processing Microservice

What we re going to do 1. Call our URL endpoint from within Lambda. 2. Turn this into a unit test by storing the outcome in Amazon DynamoDB. 3. Turn this into a load test by doing it N times.

Step 6 A Serverless Website using Amazon S3

What we re going to do 1. Create a single page webapp 2. Configure S3 bucket for static website content 3. Test in a browser

More Bells and Whistles

Features you can add 1. Make a photo-sharing site: Add OAuth to the mobile app with Amazon Cognito user identity. 2. Add client-side analytics with Amazon Mobile Analytics. 3. Add server-side telemetry using Amazon Kinesis + Lambda. 4. Bring your own image processing libraries (native code is supported).

What else can you do with AWS Lambda? Scalable IoT Backends NoSQL DB Triggers Extending Platforms Adding a Feature to Amazon S3 Real-Time Streaming Analysis

Join the serverless revolution!

Go to the AWS Lambda console, create a function, and run it. (The first million invokes are on us!)

Congrats, you re a Lambda function expert! Add an event source or an HTTP endpoint.

Build the world s easiest mobile backend. (Hint: Start with the built-in CRUD sample!)

Follow AWS Lambda aws.amazon.com/blogs/compute aws.amazon.com/lambda AWS Lambda Forum

Come Meet the Team! WHERE Mayflower Park Hotel 405 Olive Way WHEN Wednesday, August 19, 2015 5:00-7:00pm