GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MarvKalani/k-lani-demo: WORM database engine in Rust. Built for extreme write contention and zero-blocking reads via a Left-Right architecture.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
reports
reports
 
 
scripts
scripts
 
 
site
site
 
 
.gitignore
.gitignore
 
 
BENCHMARKS.md
BENCHMARKS.md
 
 
Dockerfile
Dockerfile
 
 
GETTING_STARTED.md
GETTING_STARTED.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
SYMBIOSIS.md
SYMBIOSIS.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

k-lani Project Overview and Database Preview

k-lani is an umbrella for focused products, developer tools, platform building blocks, and measured experiments. The public root page presents that portfolio; the k-lani database, formerly shown as the whole brand, now has its own page.

This repository contains the static project overview, the Docker-based database demo, the minimal redistributed runtime binaries needed to run it, and the comparative benchmark reports that back the database claims.

Live preview:

  • k-lani.com - overview of the k-lani projects
  • k-lani.com/database.html - k-lani DB / ACID Fox and its benchmark story
  • code-translator.k-lani.com - synchronized multilingual code reading
  • demo.k-lani.com - live ticket horde dashboard
  • hft.k-lani.com - experimental HFT workstation

New to the engine model? Start with GETTING_STARTED.md for the first table, field types, write/query flow, language entry points, and common error handling.

Legal and contribution context:

  • LICENSE.md - Business Source License 1.1 terms for the redistributed preview binaries and k-lani work.
  • SYMBIOSIS.md - social contribution pact for agents, toolchains, and humans; it does not replace the license.

1. The Thundering Herd Benchmark

Traditional locking databases struggle when a small inventory surface receives a huge burst of simultaneous purchase attempts. k-lani's ticket demo exercises that exact failure mode.

Scenario:

  • 100,000 users compete for 10,000 tickets
  • 128 concurrent workers
  • the horde container is capped at 2 vCPUs and 4 GB RAM

Reference result:

  • time to sold out: 5.326 seconds
  • correctly sold and re-verified: 10,000 / 10,000 tickets
  • double-spends: 0
  • peak combined read and update throughput: 10,633 ops/s

The live horde page proves persisted inventory contention handling on the TCP server path. The repo also ships a native QUIC ticket path, but the public demo.k-lani.com benchmark page is the TCP reference run.

2. Comparative Benchmarks

The point of k-lani is not to replace a general-purpose multi-terabyte relational cluster. The point is to win on small hot data surfaces with extreme write contention and very low read latency.

Embedded write concurrency

When multiple writers fight over the same embedded table, classical locking engines collapse into contention. The bundled embedded release report covers 1,000,000 rows and 100,000 lookups, and shows:

System Scenario Writers TX/s Per-writer p95
k-lani sustained concurrent point updates 32 3794.78 10.93 ms
SQLite sustained concurrent point updates 32 190.02 216.10 ms
heed sustained concurrent point updates 32 360.04 148.73 ms
redb sustained concurrent point updates 32 686.84 75.76 ms

The same release report records 310 ns p50 primary-key lookups for k-lani on the 1,000,000-row dataset, versus 3820 ns for SQLite.

Client/server release report on this machine

The bundled client/server release report was generated on this host with 100,000 rows and 100,000 random lookups. In that run, the k-lani server path delivers:

  • batched insert throughput: 413,292.85 rows/s, versus 20,986.64 for Postgres and 23,208.65 for MariaDB
  • p50 point lookup latency: 31.27 us, versus 128.56 us for Postgres and 46.08 us for MariaDB
  • p50 indexed equality lookup: 53.95 us, versus 343.10 us for Postgres and 186.56 us for MariaDB
  • p50 two-index predicate lookup: 36.67 us, versus 182.45 us for Postgres and 170.51 us for MariaDB
  • compiled server binary footprint: 1,679,624 bytes, about 1.6 MB

The same report also shows why the public claim is scoped: PostgreSQL is stronger in the long 60s server-side write saturation runs. k-lani is being presented here for small hot sets, low-latency lookups, tight binary footprint, and contention-heavy inventory surfaces rather than as a blanket replacement for general-purpose OLTP stacks.

Benchmark environment and bundled reports

These public numbers were measured on:

  • Ubuntu 24.04.4 LTS with Linux 6.17.0-29-generic
  • AMD Ryzen 5 7600X with 12 logical CPUs
  • 31 GiB RAM
  • NVMe-backed 1.8 TB system volume at / and 1.8 TB workspace volume at /d
  • Docker 29.5.2

Bundled evidence in this repo:

  • reports/client-server-comparative-release-2026-05-29.md
  • reports/embedded-core-comparative-release-2026-04-29.md
  • reports/holiday-rush-smoke-2026-05-30.md
  • reports/benchmark-host-2026-05-29.md
  • reports/SHA256SUMS.txt

For the exact local commands, container limits, runtime scripts, and the published benchmark scope, see BENCHMARKS.md.

3. Holiday Rush Travel Smoke

The preview bundle also includes the real_world_booking_bench binary and a holiday demo mode. The smoke run books exactly 1,000 rooms with exactly 1,000 booking sessions through the TCP server path, then recounts persisted rows.

docker build -t k-lani-demo:preview .
docker run --rm \
  -e K_LANI_DEMO_MODE=holiday \
  -e K_LANI_HOLIDAY_HOTELS=20 \
  -e K_LANI_HOLIDAY_ROOMS_PER_HOTEL=50 \
  -e K_LANI_HOLIDAY_SESSIONS=1000 \
  -e K_LANI_HOLIDAY_WORKERS=16 \
  k-lani-demo:preview

Report: reports/holiday-rush-smoke-2026-05-30.md.

4. Run the Demo Locally

Requirements:

  • Docker
  • Docker Compose
  • enough Docker memory for the default horde cap of 4 GB
  • free local ports 8080, 8081, 8082, and 7701/udp
  • network access on the first build to pull debian:bookworm-slim

Quickstart:

git clone https://github.com/MarvKalani/k-lani-demo.git
cd k-lani-demo
docker compose up -d --build

Watch the horde benchmark complete:

docker compose logs -f horde

Then open:

  • http://localhost:8082 for the project overview
  • http://localhost:8082/database.html for the database page
  • http://localhost:8081 for the horde dashboard
  • http://localhost:8080 for the HFT workstation

The horde service runs with the published 2 vCPU / 4 GB limit. The HFT service is deliberately capped to 10 MB of demo data so the preview host cannot grow an unbounded market-feed state.

Stop everything and remove local volumes:

docker compose down -v

Optional: run the one-shot QUIC ticket benchmark

The compose stack brings up the long-running landing, horde, and HFT services. For the one-shot native QUIC ticket benchmark, build the image once and then run it directly:

docker run --rm \
  -e K_LANI_DEMO_MODE=quic-ticket \
  -e K_LANI_USERS=100000 \
  -e K_LANI_WORKERS=128 \
  -p 7701:7701/udp \
  k-lani-demo:preview

5. What Is In This Repo

  • GETTING_STARTED.md explains the first-table workflow, supported field types, language entry points, k-lani query shapes, and common errors.
  • LICENSE.md contains the full legal license for the redistributed preview bundle and k-lani work.
  • SYMBIOSIS.md contains the non-legal contribution pact for agents and humans.
  • bin/ contains only the five runtime binaries needed for the public demo modes.
  • docker-compose.yml starts the local landing, horde, and HFT preview stack.
  • reports/ contains the comparative benchmark reports and SHA256SUMS.txt.
  • site/ contains the project overview, the database and Coder pages, the benchmark proof page, and the legal pages. The landing container serves it directly, and the horde container copies the legal pages from it into the generated dashboard output.
  • scripts/ contains the preview entrypoints used by the image.

Validate the public page contract before publishing:

bash scripts/test-site-contract.sh

What is not in this repo:

  • the private Rust workspace
  • extra internal executables or build artifacts
  • seeded HFT demo payloads
  • pitch drafts or maintainer-only handoff notes

6. Notes and Limits

  • The HFT workstation is experimental and intentionally capped to 10 MB of demo data.
  • The static project overview is permanent and does not inherit the expiry gate used for time-limited database preview binaries.
  • The public repo ships only the minimal runtime binary set, not the whole private build output.
  • Public benchmark claims should be read together with the committed reports and the checksum manifest.
  • The Symbiosis Pact is social context only; the license remains the legal authority.

About

WORM database engine in Rust. Built for extreme write contention and zero-blocking reads via a Left-Right architecture.

k-lani.com

Topics

databasedbaseembedded-databasefoxprohigh-performanceleft-rightquicrustworm

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.