5 ms·
I kind of forgot that while lambda only supports node, you can use it as a glorified wrapper to call your c++ code
by taternuts 11y ago
I kind of forgot that while lambda only supports node, you can use it as a glorified wrapper to call your c++ code
- netcraft 11y agothey also support java, and both node and java can launch other things on amazon linux including bash, python and ruby according to their docs
- rottencupcakes 11y agoI'd be nervous about java - the startup time of the JVM plus the slow execution at the beginning until everything gets JITed makes me think overhead could easily trump execution.
- glibgil 11y agoQ: Will AWS Lambda reuse function instances? To improve performance, AWS Lambda may choose to retain an instance of your function and reuse it to serve a subsequent request, rather than creating a new copy. Your code should not assume that this will always happen. https://aws.amazon.com/lambda/faqs/ https://aws.amazon.com/lambda/faqs/
- mahmoudimus 11y agoI use lambda with java and the JVM startup time is not a problem.
- daviding 11y agoYes, I've used it to call out to phantomjs, imagemagick, basically anything that will run on the AWS-EC2-Linux environment. Node or Java can be simple wrappers. Here's a template if it helps anyone: https://github.com/justengland/phantom-lambda-template https://github.com/justengland/phantom-lambda-template
- _Marak_ 11y agoIf you are looking for an open-source microservice hosting platform that supports multiple programming languages you can try looking at: https://hook.io https://hook.io I'm the creator of the project. We currently support 11+ programming languages.
- mands 11y agoWe’ve also been hacking away in the same server-less space with StackHut (http://www.stackhut.com http://www.stackhut.com). We're adding support for more languages (JS & Python currently) but also have an entire build chain that let's you specify any Linux OS and language packages you want, and it's also trivial to embed your binaries and shell out to them if needed.