Sklad, a key-value database in Zig
Show HN: Sklad, a key-value database in Zig
Based, Sklad, a key-value database in Zig works in show hn launch.
Profile
I’ve been building Sklad, a small key-value database in Zig. Right now it supports basic set/get/delete operations, TTL, and range queries. The main idea behind it is to use lock-free data structures and to build the engine around an asynchronous task queue processed by a small pool of worker threads. The task queue is a lock-free MPMC queue. Memtable is also a lock-free skip-list. I also use lock-free append-only queues and stacks throughout the code. The only place where I currently use locking is writing to WAL.The request processing pipeline is split into small tasks. A single I/O worker accepts incoming requests. When a new request arrives, the I/O worker publishes a read-request task,
Within the show hn launch space, the company focuses on its core offering rather than a broad product line.
Directory data places it at the Show HN launch stage.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: sklad.dev
Browse related
Create a free account