Posted On: Jan 6, 2022
With this release, customers can also use ‘top-level await’, a Node.js 14 language feature, to wait for asynchronous initialization tasks to complete during the function initialization phase. This capability is especially useful for functions configured with Provisioned Concurrency, which creates runtime environments ahead of time. This is designed to reduce cold start latency, resulting in more responsive applications.
Customers can use ES modules and top-level await with all Lambda functions using the Node.js 14 runtime (and subsequent releases of newer Node.js runtimes). They are available in all Regions where Lambda is available, except for China Regions. Visit our product page for more information about AWS Lambda or sign in to the AWS Lambda console to get started.