
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
      <title>Duncan Leung</title>
      <link>https://www.duncanleung.com/blog</link>
      <description>📚 Learning, 👨🏻‍💻 Building, 📝 Documenting...</description>
      <language>en-us</language>
      <managingEditor>duncan@leungs.email (Duncan Leung)</managingEditor>
      <webMaster>duncan@leungs.email (Duncan Leung)</webMaster>
      <lastBuildDate>Wed, 05 Feb 2020 00:00:00 GMT</lastBuildDate>
      <atom:link href="https://www.duncanleung.com/tags/aws-lambda/feed.xml" rel="self" type="application/rss+xml"/>
      
  <item>
    <guid>https://www.duncanleung.com/blog/aws-lambda-cold-start-optimization-nodejs</guid>
    <title>Reducing AWS Lambda Cold Start Latency in Node.js</title>
    <link>https://www.duncanleung.com/blog/aws-lambda-cold-start-optimization-nodejs</link>
    <description>A practical guide to reducing AWS Lambda cold start latency in Node.js - the anatomy of a cold start, six concrete optimizations from SDK tree-shaking to HTTP keep-alive, common myths (VPC and Layers), and when to reach for Provisioned Concurrency.</description>
    <pubDate>Wed, 05 Feb 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-lambda</category><category>performance</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/aws-sdk-promise-async-await-nodejs-lambda</guid>
    <title>AWS SDK v2 with async/await in Node.js Lambda Handlers</title>
    <link>https://www.duncanleung.com/blog/aws-sdk-promise-async-await-nodejs-lambda</link>
    <description>Bridging callback-style AWS SDK v2 methods with async/await in Node.js Lambda handlers - the .promise() method, sequential and parallel SDK calls, and the init-outside-handler pattern for cached Promises.</description>
    <pubDate>Sat, 15 Feb 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-lambda</category><category>nodejs</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/lambda-to-lambda-invocation-when-okay-when-avoid</guid>
    <title>When Direct Lambda-to-Lambda Invocation Is OK</title>
    <link>https://www.duncanleung.com/blog/lambda-to-lambda-invocation-when-okay-when-avoid</link>
    <description>AWS docs call Lambda-to-Lambda invocation an anti-pattern, but there are specific cases where direct invoke is the right call. A walkthrough of the real costs, the cases where they apply, the cases where they do not, and the alternatives.</description>
    <pubDate>Sat, 15 Feb 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-lambda</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/serverless-debugging</guid>
    <title>Serverless Notes</title>
    <link>https://www.duncanleung.com/blog/serverless-debugging</link>
    <description>DRAFT: Serverless Notes</description>
    <pubDate>Sat, 15 Feb 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-lambda</category><category>aws-api-gateway</category><category>aws-iam</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/serverless-export-environment-variables</guid>
    <title>Export Serverless Framework Environment Variables to a Local .env File</title>
    <link>https://www.duncanleung.com/blog/serverless-export-environment-variables</link>
    <description>Bridging CloudFormation-generated runtime values - DynamoDB table names, API Gateway URLs, ARNs that do not exist until deployment - into a local .env file using the serverless-export-env plugin.</description>
    <pubDate>Sun, 10 May 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-lambda</category><category>aws-cloudformation</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/serverless-framework-cli-commands-by-workflow</guid>
    <title>Serverless Framework Commands by Workflow</title>
    <link>https://www.duncanleung.com/blog/serverless-framework-cli-commands-by-workflow</link>
    <description>A practical cheatsheet for the Serverless Framework CLI - organized by workflow phase (bootstrap, develop, deploy, invoke, inspect, rollback, remove) instead of alphabetically.</description>
    <pubDate>Sat, 15 Feb 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-lambda</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/serverless-framework-least-privilege-iam-deployment-strategy</guid>
    <title>A Least-Privilege IAM Strategy for Serverless Framework Deployments</title>
    <link>https://www.duncanleung.com/blog/serverless-framework-least-privilege-iam-deployment-strategy</link>
    <description>Two practical patterns for scoping down the IAM permissions used by the Serverless Framework CLI when deploying - bottom-up gradual scoping, and the top-down &#39;dedicated deployer&#39; pattern using a dev account as a permission discovery sandbox.</description>
    <pubDate>Sat, 15 Feb 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-iam</category><category>aws-lambda</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/serverless-testing-strategy-integration-over-unit</guid>
    <title>Serverless Testing Strategy: Test Integrations and IAM Surface</title>
    <link>https://www.duncanleung.com/blog/serverless-testing-strategy-integration-over-unit</link>
    <description>Most serverless bugs don&#39;t live in your code - they live at integration points and in IAM config. Here&#39;s why unit tests miss them and what to test instead.</description>
    <pubDate>Sat, 15 Feb 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-lambda</category><category>aws-iam</category>
  </item>

    </channel>
  </rss>
