liveBook · Manning

JavaScript runtime

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A runtime environment is the software environment that provides the language runtime and execution support required by application code.

A JavaScript runtime is the execution support that runs JavaScript/Node.js function code. In AWS Lambda, you select a runtime environment, upload code and dependencies, configure the function, and invoke it in the cloud. section 6.1.2

Lambda provides a fine-grained execution environment for a function rather than a complete operating system or container. AWS manages the underlying infrastructure, while the function supplies the application logic. section 6.1 section 6.1.3

A Lambda JavaScript runtime involves:

  • Selecting JavaScript/Node.js as the runtime environment. section 6.1.2
  • Uploading the function code and dependencies, such as libraries or modules. section 6.1.2
  • Running the code inside managed execution contexts that AWS creates and initializes as needed. section 6.4.1

Periodic website health check

A JavaScript/Node.js Lambda function can perform a website health check on a schedule. The short task suits a managed, invocation-based environment, although a cold start may add milliseconds to seconds of latency. section 6.0 section 6.4.1

Figure 6.1 Executing code with AWS Lambda

Shows the sequence from writing code through uploading, configuring the runtime environment, and invoking the Lambda function. section 6.1.2

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Defines runtime selection, deployment, initialization, cold starts, and custom-runtime trade-offs, but stops short of language internals.
Examples
Uses website health checks and automated EC2-instance tagging as practical Lambda function examples.
What it assumes
Requires function code and dependencies, then introduces runtime configuration before custom-runtime conventions.
What you can do after
Operate/configure a JavaScript/Node.js Lambda function by uploading dependencies, selecting a runtime, and invoking the function.
How it connects
Connects AWS Lambda with serverless computing, execution environments, custom runtimes, cold starts, and provisioned concurrency.

Also explained in

Compare how 4 books explain JavaScript runtime →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.