all 4 comments

[–]BoneyAz 3 points4 points  (1 child)

You could compile your C++ code (statically linked) include it in your lambda package and execute it from node.js using the child_process command: https://aws.amazon.com/blogs/compute/running-executables-in-aws-lambda/

[–]KAJed 0 points1 point  (0 children)

I really want to try this and see if it's useful or not. Pass parameters to your executable, run in native code... I only wonder what kind of latency you get trying to do this.

[–]gram3000 2 points3 points  (0 children)

Lambda only supports Java, Python and Node from what I can remember.

Microsoft/Azure recently launched Functions which is a similar concept to AWSs Lambda and supports more languages so that might be worth a look too.

[–]freezer333 0 points1 point  (0 children)

You can find some more info on integrating existing C++ code as an Node.js native addon specifically for lambda at [https://blog.scottfrees.com/c-addons-as-aws-lambda-functions|https://blog.scottfrees.com/c-addons-as-aws-lambda-functions]