{"id":907,"date":"2020-01-22T12:32:20","date_gmt":"2020-01-22T12:32:20","guid":{"rendered":"https:\/\/www.easydeploy.io\/blog\/?p=907"},"modified":"2020-01-22T12:32:20","modified_gmt":"2020-01-22T12:32:20","slug":"aws-lambda-best-practices","status":"publish","type":"post","link":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/","title":{"rendered":"AWS Lambda Best Practices to Take into Account"},"content":{"rendered":"<p class=\"p2\" style=\"text-align: justify;\"><em><span class=\"s1\">Dive deep and learn some of the top <\/span><span class=\"s2\">AWS lambda best practices!<\/span><\/em><\/p>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\"><a href=\"https:\/\/aws.amazon.com\/lambda\/\" target=\"_blank\" rel=\"noopener noreferrer\">AWS Lambda<\/a> is an advanced computing service that lets the developers or users initiate coding without managing the servers. The best thing about this is, it will initiate the code when required and will automatically scale it. You can even use it to run the codes in response to specific events. For example, change to Amazon S3 bucket and DynamoDB table, in response to different HTTP requests through API Gateways and more.<\/span><\/p>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">So, it can be said that with the best <\/span><span class=\"s2\">AWS lambda pricing<\/span><span class=\"s1\">, it also comes with many benefits that make it effective. It is thoroughly scalable, yet quite simplistic and budget-friendly at the same time. If you are using this for the first time, then don\u2019t worry at all. Here, we have listed down some common <\/span><span class=\"s2\">AWS lambda best practice<\/span><span class=\"s1\">s that can help you in this. So, let\u2019s get started with it.\u00a0<\/span><\/p>\n<blockquote><p>AWS Lambda is one of the top AWS services. Check out this list of <a href=\"https:\/\/www.easydeploy.io\/blog\/aws-services-list\/\" target=\"_blank\" rel=\"noopener noreferrer\">top AWS Services<\/a> for 2020.<\/p><\/blockquote>\n<h2 class=\"p1\" style=\"text-align: justify;\"><span class=\"s1\">List of AWS Lambda Best Practices\u00a0<\/span><\/h2>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Remember that, AWS Lambda is not an AI robot. That means it can\u2019t learn by itself and can\u2019t optimize the configuration for best performance. That\u2019s why, as a developer, you should work carefully when designing. Besides, you need to know the methods to keep the performance and cost at a balanced level. <\/span><\/p>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">If you are thinking about how then go through the articles carefully, and you will get to know the best practices to use AWS Lambda at its best. Keep reading to explore the practices. <\/span><\/p>\n<h3 class=\"p1\" style=\"text-align: justify;\"><span class=\"s1\">1. AWS Lambda environment variables<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Remember that variables of the AWS environment are just like the variables of the system environment. You can easily use it in your script during the run time. So, you can utilize the variable of AWS Lambada to define different variables. For example, RDS, S3 buckets, and also application keys. <\/span><\/p>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">With this practice, you can easily copy the script and use it on other functions or cases. One of the significant\u00a0<\/span><span class=\"s2\">AWS lambda best practices<\/span><span class=\"s1\">\u00a0is its ability to control the reliance on function deployment units. So, remember this practice to use the Lambda in the best way. <\/span><\/p>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">2. Maximum availability<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">When you activate a Lambda, it functions through a VPC. The VPC comes with internet access. But it doesn\u2019t have access to other VPCs. Besides, it can only access DynamoDB and S3. It will not get access to others like Elasticsearch, RDS, and more. <\/span><\/p>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">But in some cases, you may need nee to access RDS and some other resources. In such a case, there are two crucial things that you can do: <\/span><\/p>\n<ol class=\"ol1\" style=\"text-align: justify;\">\n<li class=\"li2\"><span class=\"s1\">You can design the AWS Lambda function for maximum availability. For this, all you need to select different subnets located in AZs. <\/span><\/li>\n<li class=\"li2\"><span class=\"s1\">Make sure that other Availability Zones have enough IP addresses. So, when one goes down, you can utilize others to handle the request.<\/span><\/li>\n<\/ol>\n<blockquote><p>Also Read:\u00a0<a href=\"https:\/\/www.easydeploy.io\/blog\/setup-rds-auto-scaling-in-aws\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to Setup RDS Auto Scaling in AWS<\/a><\/p><\/blockquote>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">3. Stateless<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">For better performance, you need to need to keep the Lambda functions stateless. By doing this, you can let AWS Lambda initiate function\u2019s copies based on the requirements. Besides, this will also enhance the Lambda\u2019s scalability. Even though there are stateless programming models, you can use the code to get access to other data. This will make sure that the compute infrastructure and the code are not connected.<\/span><\/p>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">4. Concurrency<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Some developers think that AWS Lambda can handle the scalability. So why they need to consider this? Well, you need to consider this as, like others, AWS Lambda also comes with some limits on its concurrency execution. <\/span><\/p>\n<ul class=\"ul1\" style=\"text-align: justify;\">\n<li class=\"li2\"><strong><span class=\"s1\">Account-level: <\/span><\/strong>Under this level, the concurrency limit is 1000 per region.<\/li>\n<\/ul>\n<ul class=\"ul1\" style=\"text-align: justify;\">\n<li class=\"li2\"><strong><span class=\"s1\">Functional level: <\/span><\/strong>Here, the Lambda will utilize the \u201cunreserved account concurrency limit.\u201d<span class=\"Apple-converted-space\">\u00a0 <\/span>However, this practice is not good. So, one of the <span class=\"s2\">best practices for working with AWS Lambda function<\/span><span class=\"s1\">s under this is to reserve the limit of concurrency for every function.<\/span><\/li>\n<\/ul>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">It may be noted that AWS, by default, keeps the unreserved pool at 1000 concurrent execution, without any particular limit. So, you can only use up to 900. <\/span><\/p>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">5. Lambda deployment package<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Those aiming to enhance\u00a0<\/span><span class=\"s2\">AWS lambda performanc<\/span><span class=\"s1\">e can minimize the time it takes to reveal the deployment packages coded in Java. This can be done by putting the .jar files within a distinct directory. This process makes things swifter that putting the entire code of the function within one jar. Having a huge number of .class files can be troubling. In this context, it is recommended to check the AWS Lambda Deployment Package in Java for better help.\u00a0\u00a0<\/span><\/p>\n<h3 class=\"p1\" style=\"text-align: justify;\"><span class=\"s1\">6. Throttling<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Remember that any rush of the events can lead to throttling when it goes up to the default concurrency limit. That means, now you can\u2019t process new requests. Now, you need to understand the <\/span><span class=\"s2\">AWS lambda best practices\u00a0<\/span><span class=\"s1\">to handle such a condition. Otherwise, it can greatly affect your business. <\/span><\/p>\n<ul class=\"ul1\" style=\"text-align: justify;\">\n<li class=\"li2\"><span class=\"s1\">If the invocation is synchronous, it will show the 429-error code. You can also detect the origin of the throttle, i.e., whether it happens at the account level or functional level. Based on the information, you can utilize API Gateway and should carry out retry. <\/span><\/li>\n<li class=\"li2\"><span class=\"s1\">If it is asynchronous, the Lambda functions will try to discard the event two times. If it fails to process, you need to define the Dead Letter Queue with the help of SNS or SQS.<span class=\"Apple-converted-space\">\u00a0 <\/span>It will help you in debugging the error, and you can process it later.<\/span><\/li>\n<\/ul>\n<blockquote><p>It is not difficult to start a career with AWS. If you are a beginner, read our previous blog and <a href=\"https:\/\/www.easydeploy.io\/blog\/steps-to-get-started-with-aws-cloud\/\" target=\"_blank\" rel=\"noopener noreferrer\">get started with AWS<\/a> with 12 easy steps.<\/p><\/blockquote>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">7. A perfect balance between cost and memory<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Those who are serious regarding\u00a0<\/span><span class=\"s2\">AWS lambda pricing <\/span><span class=\"s1\">should try to keep the memory and cost at a perfect balance. In general, in AWS Lambda, CPU and memory move hand-in-hand. So, when boosting the memory, it will increase the CPU allocation. If you want to lower the Lambda execution time, you can try by increasing the CPU for faster processing. But, after a particular point, the memory will not lower the execution duration. This will increase the cost. <\/span><\/p>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">You can find some open-source program or software that can suggest you some best power utilization configuration. With this, you can effectively increase <\/span><span class=\"s2\">AWS lambda performanc<\/span><span class=\"s1\">e. You can check the execution time and memory usage through AWS CloudWatch Logs.\u00a0\u00a0<\/span><\/p>\n<blockquote><p>Also Read: <a href=\"https:\/\/www.easydeploy.io\/blog\/aws-security-best-practices\/\" target=\"_blank\" rel=\"noopener noreferrer\">Top 10 AWS Security Best Practices<\/a><\/p><\/blockquote>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">8. Separate IA-Roles for sperate AWS Lambda Functions<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">One of the\u00a0<\/span><span class=\"s2\">AWS lambda best practices\u00a0<\/span><span class=\"s1\">would be to make use of selective permissions while fixing IAM norms. Using separate IAM- Identity and Access Management role, you can make sure that each function is playing different roles. This helps you in ensuring POLP- Principle of Least Privilege by allocating required resources and actions that Lambda functions need. Employing the right IAM controls, you can easily prevent unauthorized access. <\/span><\/p>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">9. Cloudwatch alarms and Lambda metrics<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">To prevent an unwanted scenario, it is crucial to configure multiple matrices and alarms. It is wise to use AWS Lambda Metrics and CloudWatch Alarms. These are the most productive way of knowing the status of the Lambda function. When there are more configurations, you can quickly know the place where the script is not working and debug it immediately.\u00a0<\/span><\/p>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">10. AWS Lambda testability<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">You might be thinking that with AWS Lambda, all your codes are now executing though the cloud. So, how can you test it locally? Well, in the case of Lambda, it doesn\u2019t offer any type of facility for testing. It only depends on the source systems of the event. <\/span><\/p>\n<ul class=\"ul1\" style=\"text-align: justify;\">\n<li class=\"li2\"><span class=\"s1\">However, for effective local testing, you can use AWS SAM. This platform offers the CLI that lets you enjoy an easy to use execution environment.<\/span><\/li>\n<li class=\"li2\"><span class=\"s1\">Besides, you can also use some open source projects to develop a local execution environment. For example, localstack. Using this, you can create an environment, including all the necessary Amazon Web Services resources. You can even combine localstack and AWS SAM. <\/span><\/li>\n<li class=\"li2\"><span class=\"s1\">Always keep the business logic outside of the handler. Use the AWS Lambda Handler function only to obtain inputs. After that, prefer to send it to other methods. By separating the business logic and handler, you can test the inputs-based functions and objects. <\/span><\/li>\n<\/ul>\n<h3 class=\"p1\" style=\"text-align: justify;\"><span class=\"s1\">Some Other Useful AWS Lambda Best Practices\u00a0<\/span><\/h3>\n<ul class=\"ul1\" style=\"text-align: justify;\">\n<li class=\"li1\">\n<h4><span class=\"s1\">Optimizing Lambda Timeout<\/span><\/h4>\n<\/li>\n<\/ul>\n<p class=\"p3\" style=\"text-align: justify;\"><span class=\"s1\">One of the\u00a0<\/span><span class=\"s2\">AWS lambda best practices\u00a0<\/span><span class=\"s1\">would be to address the Lambda timeout strategically<\/span><span class=\"s2\">.\u00a0<\/span><span class=\"s1\">It is crucial for the lambda function to be prepared, knowing the execution duration. It is here to note that AWS lets 15-minute execution at the maximum level. The function execution is brought to an end by AWS after the run time period violates this process, and AWS stops function using. In short, the user needs to ensure that AWS doesn\u2019t affect the business fundamentally.\u00a0<\/span><\/p>\n<ul class=\"ul1\" style=\"text-align: justify;\">\n<li class=\"li1\">\n<h4><span class=\"s1\">Optimizing Latency<\/span><\/h4>\n<\/li>\n<\/ul>\n<p class=\"p3\" style=\"text-align: justify;\"><span class=\"s1\">As far as cost optimization is concerned, Latency is one key aspect that needs to be addressed. In fact, Lambda functions are cost-effective when the latency is lowered. It can be highly budgeting fetching when the process keeps going on for a longer duration cutting down the execution time.\u00a0\u00a0<\/span><\/p>\n<blockquote><p>Want to learn some easy tricks to save on your AWS bills? Check out these top\u00a0<a href=\"https:\/\/www.easydeploy.io\/blog\/ways-to-reduce-your-aws-bill\/\" target=\"_blank\" rel=\"noopener noreferrer\">ways to reduce your AWS bill<\/a>.<\/p><\/blockquote>\n<h3 class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Final Words<\/span><\/h3>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Here, you get to know about some <\/span><span class=\"s2\">AWS Lambda best practices <\/span><span class=\"s1\">that can help you in maximizing the performance of Lambda functions. You can use these practices during the time of designing and deploying AWS Lambda functions. <\/span><\/p>\n<p class=\"p2\" style=\"text-align: justify;\"><span class=\"s1\">Besides, based on the use case and coding language, you can also improve performance. So, keep these in your mind and make the AWS Lambda function at its maximum level. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dive deep and learn some of the top AWS lambda best practices! AWS Lambda is an advanced computing service that lets the developers or users initiate coding without managing the servers. The best thing about this is, it will initiate the code when required and will automatically scale it. You can even use it to [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":981,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[226,227,225],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AWS Lambda Best Practices to Take into Account | easydeploy.io<\/title>\n<meta name=\"description\" content=\"AWS Lambda is a leading product that helps developers to go serverless. Check out these AWS Lambda best practices to make most out of this service!\" \/>\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.easydeploy.io\/blog\/aws-lambda-best-practices\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AWS Lambda Best Practices to Take into Account | easydeploy.io\" \/>\n<meta property=\"og:description\" content=\"AWS Lambda is a leading product that helps developers to go serverless. Check out these AWS Lambda best practices to make most out of this service!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/\" \/>\n<meta property=\"og:site_name\" content=\"easydeploy.io\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-22T12:32:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png\" \/>\n\t<meta property=\"og:image:width\" content=\"830\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Siranjeevi R\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Siranjeevi R\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/\"},\"author\":{\"name\":\"Siranjeevi R\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c\"},\"headline\":\"AWS Lambda Best Practices to Take into Account\",\"datePublished\":\"2020-01-22T12:32:20+00:00\",\"dateModified\":\"2020-01-22T12:32:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/\"},\"wordCount\":1624,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png\",\"keywords\":[\"AWS lambda performance\",\"AWS lambda pricing\",\"best practices for working with AWS Lambda functions\"],\"articleSection\":[\"Amazon Web Services\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/\",\"name\":\"AWS Lambda Best Practices to Take into Account | easydeploy.io\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png\",\"datePublished\":\"2020-01-22T12:32:20+00:00\",\"dateModified\":\"2020-01-22T12:32:20+00:00\",\"description\":\"AWS Lambda is a leading product that helps developers to go serverless. Check out these AWS Lambda best practices to make most out of this service!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#primaryimage\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png\",\"width\":830,\"height\":360,\"caption\":\"AWS Lambda Best Practices\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.easydeploy.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Lambda Best Practices to Take into Account\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"name\":\"easydeploy.io\",\"description\":\"A Cloud Architect Company\",\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\",\"name\":\"EasyDeploy Technologies Pvt Ltd\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"width\":536,\"height\":100,\"caption\":\"EasyDeploy Technologies Pvt Ltd\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c\",\"name\":\"Siranjeevi R\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g\",\"caption\":\"Siranjeevi R\"},\"url\":\"https:\/\/www.easydeploy.io\/blog\/author\/siru\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AWS Lambda Best Practices to Take into Account | easydeploy.io","description":"AWS Lambda is a leading product that helps developers to go serverless. Check out these AWS Lambda best practices to make most out of this service!","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.easydeploy.io\/blog\/aws-lambda-best-practices\/","og_locale":"en_GB","og_type":"article","og_title":"AWS Lambda Best Practices to Take into Account | easydeploy.io","og_description":"AWS Lambda is a leading product that helps developers to go serverless. Check out these AWS Lambda best practices to make most out of this service!","og_url":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/","og_site_name":"easydeploy.io","article_published_time":"2020-01-22T12:32:20+00:00","og_image":[{"width":830,"height":360,"url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png","type":"image\/png"}],"author":"Siranjeevi R","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Siranjeevi R","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#article","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/"},"author":{"name":"Siranjeevi R","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c"},"headline":"AWS Lambda Best Practices to Take into Account","datePublished":"2020-01-22T12:32:20+00:00","dateModified":"2020-01-22T12:32:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/"},"wordCount":1624,"commentCount":0,"publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png","keywords":["AWS lambda performance","AWS lambda pricing","best practices for working with AWS Lambda functions"],"articleSection":["Amazon Web Services"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/","url":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/","name":"AWS Lambda Best Practices to Take into Account | easydeploy.io","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#primaryimage"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png","datePublished":"2020-01-22T12:32:20+00:00","dateModified":"2020-01-22T12:32:20+00:00","description":"AWS Lambda is a leading product that helps developers to go serverless. Check out these AWS Lambda best practices to make most out of this service!","breadcrumb":{"@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#primaryimage","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2020\/01\/aws_lambda_best_practices.png","width":830,"height":360,"caption":"AWS Lambda Best Practices"},{"@type":"BreadcrumbList","@id":"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.easydeploy.io\/blog\/"},{"@type":"ListItem","position":2,"name":"AWS Lambda Best Practices to Take into Account"}]},{"@type":"WebSite","@id":"https:\/\/www.easydeploy.io\/blog\/#website","url":"https:\/\/www.easydeploy.io\/blog\/","name":"easydeploy.io","description":"A Cloud Architect Company","publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.easydeploy.io\/blog\/#organization","name":"EasyDeploy Technologies Pvt Ltd","url":"https:\/\/www.easydeploy.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","width":536,"height":100,"caption":"EasyDeploy Technologies Pvt Ltd"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c","name":"Siranjeevi R","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g","caption":"Siranjeevi R"},"url":"https:\/\/www.easydeploy.io\/blog\/author\/siru\/"}]}},"_links":{"self":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/907"}],"collection":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/comments?post=907"}],"version-history":[{"count":5,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/907\/revisions"}],"predecessor-version":[{"id":991,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/907\/revisions\/991"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media\/981"}],"wp:attachment":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media?parent=907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/categories?post=907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/tags?post=907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}