Skip to content

Multiple Runtimes for AWS Lambda

0

I'm interested in developing a Python-based AWS Lambda function that can dynamically execute Java or Groovy code provided by users. Specifically, the function should be able to download .java or .groovy files from URLs submitted by users, then compile and run these scripts. This process should be secure, handling any potential risks associated with executing code from external sources. Could you provide guidance on setting up such an environment, including necessary security measures, to ensure safe execution of user-provided code within AWS Lambda?

asked 2 years ago802 views

1 Answer
0

Multiple runtimes in single applications

Serverless applications usually consist of multiple Lambda functions. Each Lambda function can use only one runtime but you can use multiple runtimes across multiple functions. This enables you to choose the best runtime for the task of the function. Unlike traditional applications that tend to use a single language runtime, serverless applications allow you to mix-and-match runtimes as needed.

For example, in a Lambda function that transforms JSON between services, you could choose Node.js for your business logic. In another function handling data processing, you may choose Python. Both can operate in a single serverless application.

For more info, please check https://docs.aws.amazon.com/lambda/latest/operatorguide/runtimes-multiple.html

AWS

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.