Menu
AWS Lambda
Developer Guide

Programming Model (Node.js)

AWS Lambda currently supports the following Node.js runtimes:

  • Node.js runtime v6.10 (runtime = nodejs6.10)

  • Node.js runtime v4.3 (runtime = nodejs4.3)

  • Node.js runtime v0.10.42 (runtime = nodejs)

    Important

    The v0.10.42 runtime will be unavailable to create new functions beginning on December 2016, given the end-of-life announcement for this version. Use the newer runtimes (nodejs6.10 or nodejs4.3) while creating new functions and we recommend you migrate existing functions to the nodejs4.3 or nodejs6.10 runtime as soon as possible. All examples in this documentation will work with either the nodejs4.3 or nodejs.6.10 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 CreateFunction.

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.