Mojay
SQLite for Kafka. Mojay is an embedded Rust library that gives you topics, partitions, offsets and consumer groups in a local folder, with no server. Any number of processes on the machine can produce and consume at the same time; they coordinate through file locks.
Documentation: mojay.dev
use Duration;
use ;
The same from Node.js:
import from "mojay";
const db = ;
db.;
await db..;
What's in this repository
| Folder | Content |
|---|---|
src/ |
The mojay library. |
cli/ |
The mojay command: create topics, produce, tail, describe, dump segments. |
bindings/node/ |
The Node.js package (napi-rs). |
bench/ |
Throughput and latency benchmarks. |
demo/ |
A producer and a consumer group, as separate programs. |
website/ |
The mojay.dev website (Docusaurus). |
docs/conception.md |
The design note, in French: the reference for the disk format and behavior. |
Mojay runs on macOS and Linux, on a local disk.
License
Licensed under either of Apache License, Version 2.0 or MIT license, at your option.