Crates.io | aws-lambda-runtime-proxy |
lib.rs | aws-lambda-runtime-proxy |
version | 0.2.1 |
source | src |
created_at | 2024-04-01 12:22:56.834281 |
updated_at | 2024-04-09 11:08:26.1092 |
description | A helper lib to customize the communication between the lambda handler process and the lambda runtime api. |
homepage | |
repository | https://github.com/DiscreteTom/aws-lambda-runtime-proxy |
max_upload_size | |
id | 1192458 |
size | 29,437 |
A helper lib to customize the communication between the lambda handler process and the lambda runtime api.
Add the following to the dependencies
in your Cargo.toml
:
aws-lambda-runtime-proxy = "0.2"
or run:
cargo add aws-lambda-runtime-proxy
A real world case: AWS Lambda Log Proxy.
AWS_LAMBDA_RUNTIME_API
.This library will do the following:
Based on this setup, you can write your own logic to process the requests and responses between the handler process and the AWS Lambda runtime API.
See benchmark. TLDR: the proxy will introduce less than 2ms latency, which is acceptable for most use cases.