Programming Model (Node.js)
AWS Lambda currently supports the following Node.js runtimes:
Node.js runtime v4.3 (runtime = nodejs4.3)
Node.js runtime v0.10.42 (runtime = nodejs)
The v0.10.42 runtime will be unavailable to create new functions beginning on October 2016, given the end-of-life announcement for this version. We recommend that you use v4.3. All examples in this documentation use the new v4.3 runtime. For information about programming model differences in the v0.10.42 runtime, see Using the Earlier Node.js Runtime v0.10.42.
When you create a Lambda function, you specify the runtime that you want to use. For
more information, see
runtime parameter of the
The following sections explain how common programming patterns and core concepts apply when authoring Lambda function code in Node.js. The programming model described in the following sections apply to both versions, except where indicated.