awslabs /llrt

LLRT (Low Latency Runtime) is an experimental, lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications.

★ 8,845⑂ 403👁 44⑃ 1,593● 313▤ 31
RustApache-2.0Created 2023-09-20
下载:v0.10.0-betav0.10.0-beta ↓v0.10.0-beta2026-11-05
+1
日增长
8,845
stars
403
forks
44
watchers
1,593
prs
313
issues
31
releases

README

LLRT (Low Latency Runtime) is a lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications. LLRT offers up to over 10x faster startup and up to 2x overall lower cost compared to other JavaScript runtimes running on AWS Lambda

It's built in Rust, utilizing QuickJS as JavaScript engine, ensuring efficient memory usage and swift startup.

 [!WARNING]
 LLRT is an experimental package. It is subject to change and intended only for evaluation purposes.

LLRT - DynamoDB Put, ARM, 128MB:
!DynamoDB Put LLRT

Node.js 20 - DynamoDB Put, ARM, 128MB:
!DynamoDB Put Node20

HTTP benchmarks measured in round trip time for a cold start (why?)

 Configure Lambda functions to use LLRT

Download the last LLRT release from 

 Option 1: Custom runtime (recommended)

Choose Custom Runtime on Amazon Linux 2023 and package the LLRT bootstrap binary together with your JS code.

 Option 2: Use a layer

Choose Custom Runtime on Amazon Linux 2023, upload llrt-lambda-arm64.zip or llrt-lambda-x64.zip as a layer and add to your function

 Option 3: Package LLRT in a container image

See our AWS SAM example or:

dockerfile
FROM --platform=arm64 busybox
WORKDIR /var/task/
COPY app.mjs ./
ADD https://github.com/awslabs/llrt/releases/latest/download/llrt-container-arm64 /usr/bin/llrt
RUN chmod +x /usr/bin/llrt

ENV LAMBDA_HANDLER "app.handler"

CMD [ "llrt" ]


 Option 4: AWS SAM

The following example project sets up a lambda
instrumented with a layer containing the llrt runtime.

 Option 5: AWS CDK

You can use cdk-lambda-llrt construct library to deploy LLRT Lambda functions with AWS CDK.

ts
import { LlrtFunction } from "cdk-lambda-llrt";

const handler = new LlrtFunction(this, "Handler", {
  entry: "lambda/index.ts",
});


See Construct Hub and its examples for more details.

That's it 🎉

 [!IMPORTANT]
 Even though LLRT supports ES2023 it's NOT a drop in replacement for Node.js. Consult Compatibility matrix and API for more details.
 All dependencies should be bundled for a browser platform and mark included @aws-sdk packages as external.

 Testing & ensuring compatibility

The best way to ensure your code is compatible with LLRT is to write tests and execute them using the built-in test runner. The test runner currently supports Jest/Chai assertions. There are three main types of tests you can create:

Unit Tests

- Useful for validating specific modules and functions in isolation
- Allow focused testing of individual components

End-to-End (E2E) Tests

- Validate overall compatibility with AWS SDK and WinterTC compliance
- Test the integration between all components
- Confirm expected behavior from end-user perspective
- For more information about the E2E Tests and how to run them, see here.

Web Platform Tests (WPT)

- Useful for validating LLRT’s behavior against standardized browser APIs and runtime expectations
- Ensure compatibility with web standards and cross-runtime environments
- Help verify alignment with W

Top issues

Latest release

v0.10.0-beta v0.10.0-beta 2026-11-05
Features
  - Added textStream() to Blob, Request and Response (@nabetti1720)
  - Added latin1, binary, ascii and base64url encodings to Buffer (@arxhr007)
  - Added a MkDocs documentation site (@richarddavison)

 Fixes
  - Honor totalLength in Buffer.concat (@arxhr007)
  - Fix structuredClone crashing on DataView and align structuredClone, URLSearchParams and Headers with the specification (@arxhr007)
  - Fix structuredClone transfer handling and Web Streams conformance (@nabetti1720)
  - Fix Streams edge cases uncovered by the expanded WPT coverage (@nabetti1720)
  - Fix encoding streams beha

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON