{"id":3858,"date":"2019-09-19T06:44:53","date_gmt":"2019-09-19T06:44:53","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=3858"},"modified":"2020-05-01T10:41:20","modified_gmt":"2020-05-01T10:41:20","slug":"aws-lambda-2","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/","title":{"rendered":"Understanding AWS Lambda"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\r\n<li>\r\n<h3><strong>Understanding AWS Lambda<\/strong><\/h3>\r\n<\/li>\r\n<\/ul>\r\n<p>Let us start understanding AWS Lambda with various features, working, and important terms.<\/p>\r\n<ul>\r\n<li>compute service to run code<\/li>\r\n<li>No need to provision\/manage servers, even on AWS with no server administration<\/li>\r\n<li>code is executed when needed<\/li>\r\n<li>automatic scaling as per code requests<\/li>\r\n<li>payment for compute time consumed<\/li>\r\n<li>execute code for any software application<\/li>\r\n<li>automatically does\r\n<ul>\r\n<li>compute resource administration<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>server and OS maintenance<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>capacity provisioning<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>scaling<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>code monitoring<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>logging<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>tightly integrated with other AWS service like S3<\/li>\r\n<li>code executed against event trigger like change in S3 table<\/li>\r\n<li>execute custom code by using APIs<\/li>\r\n<li>create serverless applications<\/li>\r\n<li>Lambda functions execute in serverless environment for event processing<\/li>\r\n<li>Every Lambda function instance is executed in isolated context<\/li>\r\n<\/ul>\n\n\n\n<p>Lambda Working<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>one event at a time is processed.<\/li><li>Lambda service receives an event trigger<\/li><li>Lambda service instantiates the associated code to process event<\/li><li>Response is sent by Lambda service, after execution completes<\/li><li>Lambda service waits for another event.<\/li><\/ul>\n\n\n\n<p><strong>Important terms<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Function \u2013 code block\/script\/program which Lambda executes. events passed to it by AWS and response taken<\/li><li>Runtimes \u2013 provide execution environment as per programming language. Available for different languages. Is between Lambda service and Lambda function<\/li><li>Layers \u2013 to distribute libraries\/custom runtimes\/function dependencies<\/li><li>Event source \u2013 Are AWS service which trigger Lambfa function to run it<\/li><li>Downstream resources \u2013 Are AWS services called by Lambda function. usually DynamoDB tables\/S3 buckets<\/li><li>Log streams \u2013 custom logging statements of Lambda function code by annotation<\/li><li>SAM \u2013 Or Serverless Application Model for defining serverless applications.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"238\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-203.png\" alt=\"\" class=\"wp-image-3859\"\/><\/figure>\n\n\n\n<p><strong>Lambda working <\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"181\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-204.png\" alt=\"\" class=\"wp-image-3860\"\/><\/figure><\/div>\n\n\n\n<p>Use case of automatic resizing of uploaded image<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"181\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-205.png\" alt=\"\" class=\"wp-image-3861\"\/><\/figure><\/div>\n\n\n\n<p><strong>Lambda limits <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Resource<\/strong><\/td><td><strong>Limit<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Total Function memory allocation<\/td><td>128 MB to 3,008 MB, in 64 MB increments.<\/td><\/tr><tr><td>Total Function timeout<\/td><td>900 seconds (15 minutes)<\/td><\/tr><tr><td>Total Function environment variables<\/td><td>4 KB<\/td><\/tr><tr><td>Total Function resource-based policy size<\/td><td>20 KB<\/td><\/tr><tr><td>Total Function layers<\/td><td>5 layers<\/td><\/tr><tr><td>Maximum Invocation frequency (requests per second)<\/td><td>10 times the concurrent executions limit for synchronous from all sources 10 times the concurrent executions limit for asynchronous from non-AWS sources Unlimited for asynchronous from AWS service sources<\/td><\/tr><tr><td>Total Invocation payload (sum of both request and response)<\/td><td>6 MB for synchronous and 256 KB for asynchronous<\/td><\/tr><tr><td>Total size of deployment package<\/td><td>50 MB maximum for zipped and for direct upload 250 MB for unzipped even including layers 3 MB for console editor<\/td><\/tr><tr><td>Count of Test events (console editor)<\/td><td>10<\/td><\/tr><tr><td><code>Total, \/tmp<\/code> directory storage<\/td><td>512 MB<\/td><\/tr><tr><td>Count of File descriptors<\/td><td>1,024<\/td><\/tr><tr><td>Count of Execution processes\/threads<\/td><td>1,024<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>AWS Lambda-based application lifecycle<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Develop the&nbsp; code<\/li><li>deploy the developed and tested code to AWS Lambda<\/li><li>monitor for performance<\/li><li>troubleshoot if any error<\/li><li>AWS Lambda supported languages, their tools and options<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Language<\/strong><\/td><td><strong>Tools and Options for Authoring Code<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Node.js<\/td><td>AWS Lambda consoleVisual Studio, with IDE plug-in own authoring environment<\/td><\/tr><tr><td>Java<\/td><td>Eclipse, with AWS Toolkit for Eclipse IntelliJ, with the AWS Toolkit for IntelliJown authoring environment<\/td><\/tr><tr><td>C#<\/td><td>Visual Studio, with IDE plug-in .NET Core own authoring environment<\/td><\/tr><tr><td>Python<\/td><td>AWS Lambda consolePyCharm, with the AWS Toolkit for PyCharmown authoring environment<\/td><\/tr><tr><td>Ruby<\/td><td>AWS Lambda consoleown authoring environment<\/td><\/tr><tr><td>Go<\/td><td>own authoring environment<\/td><\/tr><tr><td>PowerShell<\/td><td>own authoring environment PowerShell Core 6.0 .NET Core 2.1 SDK AWSLambdaPSCore Module<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p><strong>Get ready to pass the <a href=\"https:\/\/www.testpreptraining.ai\/aws-certified-developer-associate-practice-exam\">AWS Certified Developer &#8211; Associate<\/a> Practice Exam with practice exam Now!<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>Understanding AWS Lambda Let us start understanding AWS Lambda with various features, working, and important terms. compute service to run code No need to provision\/manage servers, even on AWS with no server administration code is executed when needed automatic scaling as per code requests payment for compute time consumed execute code for any software application&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2476,"menu_order":18,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[7,114,604],"class_list":["post-3858","page","type-page","status-publish","hentry","category-amazon-aws","tag-aws","tag-aws-lambda","tag-lambda"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Understanding AWS Lambda - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Get ready to qualify as a AWS Certified Developer - Associate with hundreds of Practice Exam and expert guidance. Try AWS Lambda Free Practice Test Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding AWS Lambda - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Get ready to qualify as a AWS Certified Developer - Associate with hundreds of Practice Exam and expert guidance. Try AWS Lambda Free Practice Test Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-01T10:41:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-203.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/\",\"name\":\"Understanding AWS Lambda - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2019-09-19T06:44:53+00:00\",\"dateModified\":\"2020-05-01T10:41:20+00:00\",\"description\":\"Get ready to qualify as a AWS Certified Developer - Associate with hundreds of Practice Exam and expert guidance. Try AWS Lambda Free Practice Test Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Certified Developer Associate (DVA-C01)\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Understanding AWS Lambda\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding AWS Lambda - Testprep Training Tutorials","description":"Get ready to qualify as a AWS Certified Developer - Associate with hundreds of Practice Exam and expert guidance. Try AWS Lambda Free Practice Test Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/","og_locale":"en_US","og_type":"article","og_title":"Understanding AWS Lambda - Testprep Training Tutorials","og_description":"Get ready to qualify as a AWS Certified Developer - Associate with hundreds of Practice Exam and expert guidance. Try AWS Lambda Free Practice Test Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-05-01T10:41:20+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-203.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/","name":"Understanding AWS Lambda - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2019-09-19T06:44:53+00:00","dateModified":"2020-05-01T10:41:20+00:00","description":"Get ready to qualify as a AWS Certified Developer - Associate with hundreds of Practice Exam and expert guidance. Try AWS Lambda Free Practice Test Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-lambda-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"AWS Certified Developer Associate (DVA-C01)","item":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/"},{"@type":"ListItem","position":3,"name":"Understanding AWS Lambda"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=3858"}],"version-history":[{"count":5,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3858\/revisions"}],"predecessor-version":[{"id":5096,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3858\/revisions\/5096"}],"up":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2476"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=3858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=3858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=3858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}