{"id":902,"date":"2019-10-23T19:41:19","date_gmt":"2019-10-23T19:41:19","guid":{"rendered":"http:\/\/customers-love-solutions.com\/?p=902"},"modified":"2019-11-21T13:33:41","modified_gmt":"2019-11-21T13:33:41","slug":"2-7-1-faas-lambda","status":"publish","type":"post","link":"https:\/\/customers-love-solutions.com\/?p=902","title":{"rendered":"2.7.1 FaaS, Lambda"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Create thumbnails with Lambda.<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/customers-love-solutions.com\/wp-content\/uploads\/2019\/11\/20191115-2_7_1Lambda_FaaS-500x216-1024x374.jpg\" alt=\"\" class=\"wp-image-1022\" width=\"834\" height=\"304\" srcset=\"https:\/\/customers-love-solutions.com\/wp-content\/uploads\/2019\/11\/20191115-2_7_1Lambda_FaaS-500x216-1024x374.jpg 1024w, https:\/\/customers-love-solutions.com\/wp-content\/uploads\/2019\/11\/20191115-2_7_1Lambda_FaaS-500x216-300x110.jpg 300w, https:\/\/customers-love-solutions.com\/wp-content\/uploads\/2019\/11\/20191115-2_7_1Lambda_FaaS-500x216-768x281.jpg 768w, https:\/\/customers-love-solutions.com\/wp-content\/uploads\/2019\/11\/20191115-2_7_1Lambda_FaaS-500x216-1200x439.jpg 1200w, https:\/\/customers-love-solutions.com\/wp-content\/uploads\/2019\/11\/20191115-2_7_1Lambda_FaaS-500x216-594x217.jpg 594w, https:\/\/customers-love-solutions.com\/wp-content\/uploads\/2019\/11\/20191115-2_7_1Lambda_FaaS-500x216.jpg 1250w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><figcaption>Lambda functions<\/figcaption><\/figure>\n\n\n\n<p>A good use case is <strong>media streaming<\/strong> and to make things faster. Therfore <strong>serverless functionality like Lambda<\/strong> provides support by serverless code, we call it Function as a Service (<strong>FaaS).<\/strong> <br>E.g. to encode video data, transcode video or picture formats to multiple formats, like in this example above or to catalog video metadata or stream video to clients.<br>The <strong>code<\/strong> will be <strong>triggered by an event<\/strong>. If the event status occurs, the code e.g. written in Python<strong> starts to run<\/strong> and you <strong>pay for the used compute time<\/strong>. An event could be a file upload in a S3 bucket (Source Bucket). Following this trigger the Lambda function act in relation to an Execution Role, &#8222;<strong>Who can do what with the Lambda function<\/strong>&#8222;. It picks up the uploaded file and starts transcoding and outputs the files to a target S3 bucket.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create thumbnails with Lambda. A good use case is media streaming and to make things faster. Therfore serverless functionality like Lambda provides support by serverless code, we call it Function as a Service (FaaS). E.g. to encode video data, transcode video or picture formats to multiple formats, like in this example above or to catalog [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":941,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,21,3,9,5,19],"tags":[],"class_list":["post-902","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws-cloud-architecture","category-awsomeday","category-conferences","category-infrastructure","category-native-cloud","category-self-learning","clearfix","post-index","fader"],"jetpack_featured_media_url":"https:\/\/customers-love-solutions.com\/wp-content\/uploads\/2019\/11\/Thumbnail-sky-lambda.jpg","_links":{"self":[{"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=\/wp\/v2\/posts\/902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=902"}],"version-history":[{"count":4,"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=\/wp\/v2\/posts\/902\/revisions"}],"predecessor-version":[{"id":1039,"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=\/wp\/v2\/posts\/902\/revisions\/1039"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=\/wp\/v2\/media\/941"}],"wp:attachment":[{"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/customers-love-solutions.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}