Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda Java compatiblity [closed]

AWS has introduced AWS Lambda, an event driven computing service for dynamic applications, which I hope allows me to realize the following:

It should take a link and then perform HTTP requests and process the incoming responses from this requests. For this procedure I need multiple programs, which are executed in a queue. So the Lambda function has to execute several Java/C++ programs and some Python scripts from the Lambda function. If this is not possible, can I then convert this code/the executables into Node.js modules and use everything within the same procedure this way?

I'm wondering if this is possible with AWS Lambda?

like image 204
orbatschow Avatar asked Dec 25 '14 02:12

orbatschow


People also ask

What version of Java does AWS Lambda support?

AWS SDK for Java 2.0 – The official AWS SDK for the Java programming language.

Does AWS Lambda support Java 17?

For example, the Lambda runtime for Java supports the LTS versions Java 8 Corretto and Java 11 Corretto as of April 2022. The Java 17 Corretto version is pending. In addition, there is no provided runtime for non LTS versions like Java 15 Corretto, Java 16 Corretto, or Java 18 Corretto.

Does AWS Lambda support Java 11?

Lambda functions are written in Java 11 run on Amazon Linux 2, the latest generation of Amazon Linux, and Amazon Corretto 11.

Does AWS Lambda support Java 8?

Note that Lambda supports two versions of the Java 8 managed runtime: the java8 runtime, which runs on Amazon Linux 1, and the java8.


1 Answers

When AWS announced Lambda, they mentioned it will be extended to other programming languages in the future. Java and Python (or Jython) are likely candidates being considered.

As of today, Lambda functions support node.js and are executed on Amazon EC2 instances.

Anything packaged as a nodejs module and based on Linux binaries should be able to run on lambda.

Remember also that your lambda function execution time is 60 seconds at max. Your function will be interrupted if it runs above that limit.


[UPDATE March 2016]

Lambda now supports Java8 and Python 2.7 execution environments in addition of NodeJS.
Execution time has been extended to 300 sec max. http://docs.aws.amazon.com/lambda/latest/dg/limits.html

like image 145
Sébastien Stormacq Avatar answered Oct 11 '22 12:10

Sébastien Stormacq