Skip to content

New pattern - lambda-az-aware-routing-cdk#3095

Open
NithinChandranR-AWS wants to merge 1 commit intoaws-samples:mainfrom
NithinChandranR-AWS:NithinChandranR-AWS-feature-lambda-az-aware-routing-cdk
Open

New pattern - lambda-az-aware-routing-cdk#3095
NithinChandranR-AWS wants to merge 1 commit intoaws-samples:mainfrom
NithinChandranR-AWS:NithinChandranR-AWS-feature-lambda-az-aware-routing-cdk

Conversation

@NithinChandranR-AWS
Copy link
Copy Markdown
Contributor

Description

Deploy a Lambda function that uses the new Lambda metadata endpoint (March 2026) to discover its Availability Zone ID and demonstrates same-AZ routing to reduce cross-AZ latency.

Features

  • Reads AZ ID via AWS_LAMBDA_METADATA_API + AWS_LAMBDA_METADATA_TOKEN
  • Caches AZ ID for warm invocations
  • DynamoDB table for recording routing decisions
  • NodejsFunction with esbuild bundling, Function URL

Checklist

  • My code follows the Serverless Land patterns guidelines
  • I have updated the README.md
  • I have added example-pattern.json
  • I have tested this pattern and it works
  • CDK synth passes

Deploy a Lambda function that reads its AZ ID from the new metadata
endpoint (March 2026) and demonstrates same-AZ routing to reduce
cross-AZ latency and data transfer costs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants