
  <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/serverless/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/cloudformation-ref-vs-getatt-serverless-yml</guid>
    <title>CloudFormation !Ref vs !GetAtt in serverless.yml</title>
    <link>https://www.duncanleung.com/blog/cloudformation-ref-vs-getatt-serverless-yml</link>
    <description>The mental model behind CloudFormation !Ref and !GetAtt - !Ref returns a resource primary identifier, !GetAtt returns one of its named attributes. With practical examples for IAM permissions and Lambda environment variables in serverless.yml.</description>
    <pubDate>Sat, 15 Feb 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-cloudformation</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>

  <item>
    <guid>https://www.duncanleung.com/blog/notes-web-cache-invalidation</guid>
    <title>Switch the AWS Profile for Serverless CLI</title>
    <link>https://www.duncanleung.com/blog/notes-web-cache-invalidation</link>
    <description>DRAFT: Switch the AWS Profile for Serverless CLI</description>
    <pubDate>Tue, 05 May 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>serverless</category><category>aws-cli</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/switch-multiple-aws-profile-aws-cli-serverless</guid>
    <title>Switching AWS Profiles for Serverless CLI</title>
    <link>https://www.duncanleung.com/blog/switch-multiple-aws-profile-aws-cli-serverless</link>
    <description>A guide to set up and switch between multiple AWS profiles when working with AWS CLI and Serverless Framework projects.</description>
    <pubDate>Tue, 05 May 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>aws</category><category>serverless</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/visual-studio-code-yml-custom-serverless-tag</guid>
    <title>Add Custom AWS YAML Tags in VS Code</title>
    <link>https://www.duncanleung.com/blog/visual-studio-code-yml-custom-serverless-tag</link>
    <description>Learn how to set up VS Code to properly recognize and validate custom YAML tags used in Serverless Framework configuration files.</description>
    <pubDate>Fri, 08 May 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>vscode</category><category>serverless</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/serverless-pseudo-parameters-reference-another-lambda</guid>
    <title>Reference AWS Lambda API Endpoints in serverless.yml</title>
    <link>https://www.duncanleung.com/blog/serverless-pseudo-parameters-reference-another-lambda</link>
    <description>A detailed guide to using Serverless Framework pseudo parameters for referencing Lambda functions and other AWS resources in your serverless applications.</description>
    <pubDate>Sun, 10 May 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>aws</category><category>serverless</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/serverless-set-breakpoint-locally-debug-aws-lambda</guid>
    <title>Set Breakpoints to Locally Debug AWS Lambda</title>
    <link>https://www.duncanleung.com/blog/serverless-set-breakpoint-locally-debug-aws-lambda</link>
    <description>A step-by-step guide to setting up and using breakpoints for local debugging of AWS Lambda functions, improving serverless development workflow.</description>
    <pubDate>Thu, 28 May 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>aws</category><category>serverless</category><category>debugging</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/serverless-securing-authenticate-aws-api-gateway-endpoints-cognito-iam-api-key</guid>
    <title>Securing AWS API Gateway Endpoints (Cognito, IAM, API Keys)</title>
    <link>https://www.duncanleung.com/blog/serverless-securing-authenticate-aws-api-gateway-endpoints-cognito-iam-api-key</link>
    <description>A guide to implement authentication and authorization in AWS API Gateway, covering Cognito User Pools, IAM roles, and API keys with practical examples.</description>
    <pubDate>Sat, 30 May 2020 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>aws</category><category>serverless</category><category>security</category>
  </item>

    </channel>
  </rss>
