Native executables
Lambda is actually designed to run code in any language, as Lambda's sandbox is just a container. The trick is that we could use a Node.js program to execute any binary shipped with the ZIP file before uploading.
It is worth noting that when preparing our own binary for Lambda, it must be statically compiled or matched with the shared libraries provided by Amazon Linux (as the containers used on Lambda are all Amazon Linux-based). It is our responsibility to track the Amazon Linux version by ourselves.
A project such as LambCI (http://github.com/lambci/docker-lambda) can help to solve this problem. LambCI provides a local sandbox environment, as Docker containers, that mimics the AWS Lambda environment by installing the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access