AWS Lambda with Java/Scala #渋谷Java 第十二回

Download AWS Lambda with Java/Scala #渋谷Java 第十二回

Post on 15-Aug-2015

779 views

Category:

Software

2 download

Embed Size (px)

TRANSCRIPT

<ol><li> 1. AWS Lambda with Java/Scala @hajimeni #Java </li><li> 2. AWS Lambda JavaScala </li><li> 3. ( twittergithub: @hajimeni ) CAPI etc Java, C#, JavaScript(CoeeScript), Scala, (python) etc () Web RDB(Oracle, MySQL) AWSSolrMongoDBCassandramemcached, Redis hubot pythonScript </li><li> 4. Amazon Aurora (2015/07/28) MySQLRDS MySQLJDBC 0 (64TB) MySQL5.65(Amazon) (ap-northeast-1) </li><li> 5. AWS AuroraLambda </li><li> 6. AWS Lambda AWS Event Sources S3 Kinesis DynamoDB Streams(Preview) Dynamo Cognito(eu-west1, us-east1 only) Java8 Node.js </li><li> 7. S3 DynamoStreams Kinesis SNS Cognito Amazon Echo Alexa Skills kit </li><li> 8. Java Eclipse Plugin AWS Toolkit http://docs.aws.amazon.com/ja_jp/AWSToolkitEclipse/latest/GettingStartedGuide/Welcome.html </li><li> 9. package com.github.hajimeni.lambda.java; import java.util.HashMap; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; import com.amazonaws.services.lambda.runtime.events.S3Event; public class LambdaFunctionHandler implements RequestHandler { @Override public Object handleRequest(S3Event input, Context context) { context.getLogger().log("Input: " + input); HashMap map = new HashMap(); map.put("result", "OK"); return map; } } API Gateway JSON MapListJSON </li><li> 10. AWS Lambda Project </li><li> 11. CloudFrontLog S3 Role Memory 100ms </li><li> 12. 24MB CodeSize = jar 10MBS3 </li><li> 13. </li><li> 14. </li><li> 15. Event source ObjectCreated (Post, Put, Copy, Upload) Object Removed (Delete) </li><li> 16. S3PUT LogCloudWatchLogs /aws/lambda/${function_name} MaxMemory </li><li> 33. Writing AWS Lambda Functions in Scala https://aws.amazon.com/jp/blogs/compute/ writing-aws-lambda-functions-in-scala/ Lambda Function Java http://dev.classmethod.jp/cloud/aws/ lambda-function-in-java/ </li></ol>

Recommended

View more >