Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AWS Lambda

A honig server runs on AWS Lambda through lambda_http, behind the API Gateway route ANY /{proxy+}. lambda_http::run takes the router in the same way as its adapter does here:

    let mut adapter = lambda_http::Adapter::from(api::Server::new(Server).into_axum());
TopicWhat to know
Stagelambda_http puts the stage in front of the path unless AWS_LAMBDA_HTTP_IGNORE_STAGE_IN_PATH is set. A REST API always has a named stage.
Caller’s addressThere is no socket. API Gateway’s sourceIp is in ctx.extension::<lambda_http::request::RequestContext>().
Binary bodiesA REST API decodes them only for the media types in its binaryMediaTypes.
Body sizeAPI Gateway buffers the request up to 6 MB.