© 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, ServerlessJun 2, 2017d i t e tct
View Slide
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Who am ISpecialist Solutions Architect, ServerlessAmazon Web Service Japan K.K@Keisuke69 Keisuke69 Keisuke69 Keisuke69Keisuke69x
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.u ntAWS Lambda s qe WS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Lambdah t ntK
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.is kLambda” c• H X qH qc wwqw
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.t t• q W q• CPU• q• W WH WH qc m a WWa H W W
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Lambdah t nt1. OENI P2.3. ”4. ”5. I6. /• VPC• 10 30• Duration q w
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Lambdah t nt1. OENI P2.3. ”4. ”5. I6. /• e• S3 “ ZIP• Duration q w
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Lambdah t nt1. OENI P2.3. ”4. ”5. I6. /••• Duration q w
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Lambdah t nt1. OENI P2.3. ”4. ”5. I6. /• e /• Duration q
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Lambdah t nt1. OENI P2.3. ”4. ”5. I6. /W
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Lambdah t nt1. OENI P2.3. ”4. ”5. I6. /
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Lambdah t nt1. OENI P2.3. ”4. ”5. I6. /WO“ P
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b aS H W• c c 1 W• X W e• H e• H c w q X
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b aS H W• c c 1 W• X W e• H e• H c w q XW rHq m
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b a0 q• c• L• c c H q X qw e X rHcAWS Lambdaq qwT H
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b a
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b a•T• TrAWS Lambda aHJVM q• e H w SW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b a”• W XsZip W• q•• ” q y• Javaq W• Java ProGuard mS• q
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b aVPCq• S qVPC mS WX• VPC 1030W Xq• VPC W r• RDBMS W rDynamoDB Streams AWSLambda
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b aJava q• POJO q S• JSON qW H JSONe– https://github.com/FasterXML/jackson-jr– http://docs.aws.amazon.com/lambda/latest/dg/java-handler-io-type-stream.html• S Java8OlambdaH H mP
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.b aWSimport boto3client = Nonedef my_handler(event, context):global clientif not client:client = boto3.client("s3")# process
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Invoke w W• s H e H• s H e Te WwS• qX Invoke W q• c H• Amazon API Gateway x b HPUT AWSLambda q HAmazon SQSHAmazon Kinesis m
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.API Gateway is“ 41 / = E5 2 :50 4 5
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.API Gateway is“ 41 / = E5 2 :50 4 5Lambdas
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Think Parallel• AWS Lambda q S1 e bS• 1 Invoke b q H LambdaInvoke• Lambda W H
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.A A A A (A)= A=) A = =F G
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.- a k
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Limit Increaseq1000H W X• Throttle mS• Throttle mq• m qH HSALimit Increase W• H e e• c c W H q
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.t e t
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.AWS LambdaFRDBMSAWS Lambda + RDBMSW•• AWS Lambdaq eyHq• AWS LambdaW H w We H DBt W H TW• VPC• VPC W H 10• Amazon DynamoDB S• RDBMS W qDynamoDB StreamsAWS Lambda
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.IP NAmazon API Gateway AWS Lambda APIIP em X• IP S qWAWS Lambda qVPC NAT S Sq W…• VPC• NAT Hc H HW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.dr W H W101• q W q• W eyHq W WH W mqc• H T W• S H I W WXS X q w S
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Serverless != Monitorlessq• H• CloudWatch OErrors, ThrottlesP• CloudWatch• CloudWatch Logst
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.•• Dead Letter Queue O Pq W• AWS Lambda q 1 1q• Lambda W2Ww• Amazon DynamoDB mS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Wrap-upAWS Lambda W•••••c d Sq X w S
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.AWS Lambda u2017 6 93,240 O PAmazonhttp://amzn.asia/ew2WWPmAWS Summit Expo H• w• “ Xw
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.Thank You!