# Reducing cross-AZ latency with the AWS Lambda metadata endpoint

DevFeed: [Reducing cross-AZ latency with the AWS Lambda metadata endpoint](<https://devfeed.tech/articles/reducing-cross-az-latency-with-the-aws-lambda-metadata-endpoint-84345.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/compute/reducing-cross-az-latency-with-the-aws-lambda-metadata-endpoint/>)

Author: Daniel Abib

Published: 2026-10-09T19:41:24Z

Content type: tutorial

Language: en

Sources: [AWS Compute Blog](<https://devfeed.tech/sources/aws-compute-blog.md>)

Topics: [Availability](<https://devfeed.tech/topics/availability.md>), [Amazon ElastiCache](<https://devfeed.tech/topics/amazon-elasticache.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>)

Tags: [amazon-aurora](<https://devfeed.tech/tags/amazon-aurora.md>), [amazon-memorydb](<https://devfeed.tech/tags/amazon-memorydb.md>), [announcements](<https://devfeed.tech/tags/announcements.md>), [api](<https://devfeed.tech/tags/api.md>), [availability](<https://devfeed.tech/tags/availability.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [cache](<https://devfeed.tech/tags/cache.md>), [foundational-100](<https://devfeed.tech/tags/foundational-100.md>), [latency](<https://devfeed.tech/tags/latency.md>)

## AI overview

AWS Lambda functions can retrieve their Availability Zone ID from a metadata endpoint and use it to favor same-zone endpoints for services such as ElastiCache, RDS, and MemoryDB. The article explains authenticated access, caching and SnapStart considerations, and fallback routing to reduce cross-zone latency and support zone-aware resilience.

## Source excerpt

AWS Lambda now exposes Availability Zone metadata through an endpoint in the execution environment, so your function can discover its AZ ID with an HTTP request. Use it to prefer same-AZ endpoints for services like ElastiCache, Amazon RDS, and MemoryDB, reduce cross-AZ latency and data transfer costs, and build AZ-aware resilience patterns.