- Newest
- Most votes
- Most comments
Data transfer for synchronous Lambda-to-Lambda invocations within the same AWS Region is not billed. When one Lambda function invokes another in the same region using the Invoke API in request-response (synchronous) mode, the payload travels through Lambda's internal infrastructure within that region. The invoke payload is secured with TLS 1.2+ while in transit and passes through an isolated internal VPC owned by the Lambda service within the AWS Region. This internal data transfer within the Lambda service infrastructure does not incur data transfer charges.
For your cost model, this means the $0.01/GiB charge you're applying to every cross-function invocation within the same region is not accurate. The cost savings from merging Lambda functions would need to be recalculated based on other factors rather than data transfer costs. You should focus your model on benefits like reduced invocation costs (since you're eliminating the per-request charges for the intermediate function calls), improved latency from eliminating network hops, and potential cold start reduction when consolidating functions. The Lambda pricing structure charges per request and per millisecond of execution time based on allocated memory, so merging functions would primarily save on the per-request charges and potentially on total execution time if the network overhead is significant.
Sources
Lambda invoke modes - Security Overview of AWS Lambda
Serverless Computing - AWS Lambda Functions - Amazon Web Services
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 4 years ago
