AWS re:Invent re:Cap - 자동화된 반응형 코드 구동: Amazon Lambda - 정윤진

Download AWS re:Invent re:Cap - 자동화된 반응형 코드 구동: Amazon Lambda - 정윤진

Post on 11-Jul-2015

420 views

Category:

Technology

2 download

Embed Size (px)

TRANSCRIPT

<ul><li><p> 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified, or distributed in whole or in part without the express consent of Amazon.com, Inc. </p><p>December 8, 2014 | Korea </p><p>re:</p></li><li><p>Code </p><p> thumbnail = function(){ </p><p> process.nextTick() </p><p> }</p></li><li><p>Code </p><p> thumbnail = function(){ </p><p> process.nextTick() </p><p> }</p></li><li><p>Code </p><p> thumbnail = function(){ </p><p> process.nextTick() </p><p> }</p></li><li><p>High </p><p>Availability Scalability </p></li><li><p>easyimg.resize({src:'beach.jpg', dst:'beach-small.jpg', width:640, height:480}, </p><p>function(err, stdout, stderr) { </p><p> if (err) throw err; </p><p> console.log('Resized to 640x480'); </p><p>}); </p></li><li><p>What if there were a better way? </p></li><li><p>PUT </p><p>COPY </p><p>UPDATE </p><p>DELETE </p><p>RESTORE </p></li><li><p>Easy to author </p><p>Easy to scale </p><p>Easy to manage </p><p>Easy to maintain </p><p>Easy to pay for </p><p>Easy to deploy </p><p>Easy to maintain </p></li><li><p>Amazon S3 Bucket Events AWS Lambda </p><p>Original image Thumbnailed image </p><p>1 </p><p>2 </p><p>3 </p></li><li><p>AWS Lambda </p><p> DynamoDB </p><p>Table and Stream </p><p>Send Amazon SNS </p><p>notifications </p><p>Update another table </p></li><li><p>AWS API calls </p><p>AWS CloudTrail Logs </p><p>AWS Lambda </p><p> Bucket events Amazon SNS notifications </p></li><li><p>AWS Lambda </p></li><li><p>? ? </p></li><li><p>a = 1 b = two </p><p>c = 3 </p><p>d = four a = 1 b = two </p><p>c = 3 </p><p>d = four </p><p>c = 3 </p><p>d = four geofence = inside </p><p>where truck in geofence a </p><p>and c &gt; 1 and d != two </p><p> HTTP Post (webhook) SNS RedShift S3 Republish on another </p><p>topic </p><p> Republish to another account </p><p> Transform payload </p></li><li><p>a = 2 </p></li><li><p>Evolve with AWS </p><p> Ease of scaling up </p><p> Ease of deployments </p><p> Flexibility to change architecture on the fly </p><p> Last week swapped out web servers in an afternoon without any </p><p>customers knowing because of ELB </p><p>and AMI easiness. </p><p> Moved from pure queue/worker to parallel processing for ingestion </p><p>and BI using Kafka and Samza with </p><p>ease. </p><p>- Listeners - Commanders </p><p>Yarn Cluster: - Translation (i/o) - BI </p><p>Public-facing API </p><p>MongoDB </p></li><li><p>Work with DynamoDB Stream </p></li><li><p>Work with Kinesis Stream </p></li><li><p>log</p><p>log</p><p>log</p></li><li><p>aws.amazon.com/lambda</p></li><li><p> . </p><p>http://bit.ly/awsevals </p><p>https://www.youtube.com/watch?v=UFj27laTWQA</p><p>https://www.youtube.com/watch?v=Ab1DgUfcJbk</p><p>re:</p></li></ul>