lmdb-queue is a high-performance embedded queue library for Node.js, inspired by Kafka, capable of processing millions of messages per second. Current stable version is 0.2.0 (pre-1.0, may be unstable). Its core is implemented in C++ using LMDB, enabling multi-process access. It provides Producer and Consumer classes with configurable chunk size, batch size, and data types (string/buffer). Differentiators: embeddable, no external dependencies like Kafka, extremely high throughput. However, it has not been updated since 2015, lacks TypeScript support, and requires manual directory creation.
npm install lmdb-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a producer, pushing messages, creating a consumer, and popping messages in a loop.
Consider alternatives like bull, kue, or p-queue for maintained queue solutions.
Use fs.mkdirSync() or similar to ensure the directory exists.
Check strictly!== null when looping.
Refer to v0.2.0 documentation; older options may differ.
Test in your target runtime; native binding may fail.
Run 'npm install lmdb-queue' in your project directory.
Create the directory manually or with fs.mkdirSync before instantiating Producer/Consumer.
Use LmdbQueue.STRING_TYPE (0) or LmdbQueue.BUFFER_TYPE (1) from the main module export.
Recompile: npm rebuild lmdb-queue. Or install with '--build-from-source'.