Get the latest tech news
Rust for AWS Lambda, the Docker Way
In this short article, we go over a setup to distribute AWS Lambda endpoints written in the Rust programming language through Docker images instead of a zipped binary. This technique leverages the power of Cargo Lambda and multi-stage Docker builds.
Rust is a great language to consider when writing services for AWS Lambda, because of its extremely low start-up time, CPU usage and memory footprint. While the latter makes the process of testing, compiling and deploying Rust Lambdas very easy, there is sometimes the need to distribute a Docker image instead of the raw binary. In the end, some trial and error paired with the use of the GitHub search bar allowed me to find the most straightforward way to get to a working Docker image.
Or read this on Hacker News