Slide 1

Slide 1 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Keisuke Nishitani (@Keisuke69), Specialist SA, Serverless Jun 2, 2017 d i t e t ct

Slide 2

Slide 2 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Who am I Specialist Solutions Architect, Serverless Amazon Web Service Japan K.K @Keisuke69 Keisuke69 Keisuke69 Keisuke69 Keisuke69x

Slide 3

Slide 3 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. u nt AWS Lambda s q e W S

Slide 4

Slide 4 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t ntK

Slide 5

Slide 5 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Slide 6

Slide 6 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Slide 7

Slide 7 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. is k Lambda ” c • H X q H qc ww qw

Slide 8

Slide 8 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Slide 9

Slide 9 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. t t • q W q • CPU • q • W WH W H qc m a W W a H W W

Slide 10

Slide 10 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Slide 11

Slide 11 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t nt 1. OENI P 2. 3. ” 4. ” 5. I 6. / • VPC • 10 30 • Duration q w

Slide 12

Slide 12 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t nt 1. OENI P 2. 3. ” 4. ” 5. I 6. / • e • S3 “ ZIP • Duration q w

Slide 13

Slide 13 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t nt 1. OENI P 2. 3. ” 4. ” 5. I 6. / • • • Duration q w

Slide 14

Slide 14 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t nt 1. OENI P 2. 3. ” 4. ” 5. I 6. / • e / • Duration q

Slide 15

Slide 15 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t nt 1. OENI P 2. 3. ” 4. ” 5. I 6. / W

Slide 16

Slide 16 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t nt 1. OENI P 2. 3. ” 4. ” 5. I 6. /

Slide 17

Slide 17 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t nt 1. OENI P 2. 3. ” 4. ” 5. I 6. / W

Slide 18

Slide 18 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lambdah t nt 1. OENI P 2. 3. ” 4. ” 5. I 6. / W O“ P

Slide 19

Slide 19 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a S H W • c c 1 W • X W e • H e • H c w q X

Slide 20

Slide 20 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a S H W • c c 1 W • X W e • H e • H c w q X W rH q m

Slide 21

Slide 21 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a 0 q • c • L • c c H q X q w e X rHc AWS Lambdaq q wT H

Slide 22

Slide 22 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a

Slide 23

Slide 23 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a • T • TrAWS Lambda aHJVM q • e H w SW

Slide 24

Slide 24 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a ” • W X sZip W • q • • ” q y • Javaq W • Java ProGuard m S • q

Slide 25

Slide 25 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a VPCq • S qVPC mS W X • VPC 10 30 W X q • VPC W r • RDBMS W rDynamoDB Streams AWS Lambda

Slide 26

Slide 26 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a Java q • POJO q S • JSON q W H JSON e – https://github.com/FasterXML/jackson-jr – http://docs.aws.amazon.com/lambda/latest/dg/java-handler-io-type- stream.html • S Java8 OlambdaH H mP

Slide 27

Slide 27 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. b a W S import boto3 client = None def my_handler(event, context): global client if not client: client = boto3.client("s3") # process

Slide 28

Slide 28 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Slide 29

Slide 29 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Invoke w W • s H e H • s H e Te W wS • q X Invoke W q • c H • Amazon API Gateway x b HPUT AWS Lambda q H Amazon SQSHAmazon Kinesis m

Slide 30

Slide 30 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. API Gateway is “ 41 / = E 5 2 : 5 0 4 5

Slide 31

Slide 31 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. API Gateway is “ 41 / = E 5 2 : 5 0 4 5 Lambda s

Slide 32

Slide 32 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Think Parallel • AWS Lambda q S 1 e b S • 1 Invoke b q H Lambda Invoke • Lambda W H

Slide 33

Slide 33 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Slide 34

Slide 34 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A A A A (A ) = A= ) A = = F G

Slide 35

Slide 35 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - a k

Slide 36

Slide 36 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Limit Increase q1000H W X • Throttle mS • Throttle mq • m qH HSA Limit Increase W • H e e • c c W H q

Slide 37

Slide 37 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. t e t

Slide 38

Slide 38 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS LambdaFRDBMS AWS Lambda + RDBMSW • • AWS Lambdaq eyH q • AWS LambdaW H w W e H DBt W H T W • VPC • VPC W H 10 • Amazon DynamoDB S • RDBMS W qDynamoDB Streams AWS Lambda

Slide 39

Slide 39 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IP N Amazon API Gateway AWS Lambda API IP e m X • IP S q W AWS Lambda qVPC NAT S S q W… • VPC • NAT Hc H H W

Slide 40

Slide 40 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. d r W H W10 1 • q W q • W eyH q W WH W mqc • H T W • S H I W W X S X q w S

Slide 41

Slide 41 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Serverless != Monitorless q • H • CloudWatch OErrors, ThrottlesP • CloudWatch • CloudWatch Logst

Slide 42

Slide 42 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • Dead Letter Queue O P q W • AWS Lambda q 1 1 q • Lambda W2 Ww • Amazon DynamoDB m S

Slide 43

Slide 43 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Wrap-up AWS Lambda W • • • • • c d S q X w S

Slide 44

Slide 44 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda u 2017 6 9 3,240 O P Amazon http://amzn.asia/ew2WWPm AWS Summit Expo H • w • “ Xw

Slide 45

Slide 45 text

© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank You!