SSI 2PC Transactions · Persistent Streams · Live Watch Bus · Multi Raft · AES-256-GCM

Deploy a Distributed ACID Database

Replace fragmented stacks of key-value caches, transactional databases, and message brokers with one zero-dependency distributed storage server built for predictable low-latency workloads.

$ curl -fsSL https://raw.githubusercontent.com/slyber-app/slyber-db/main/install.sh | sudo bash
Documentation Slyber DB on GitHub
Replica 01 lsm · wal Replica 02 vlog · raft Slyber DB · :9110 4096 partitions · multi-raft kv · ssi streams watch
Serializable ACID & 2PC Store
Execute atomic counters, compare-and-swap locks, TTL expirations, and cross-partition 2PC transactions with strict Serializable Snapshot Isolation.
Persistent O(1) Message Streams
Append, deduplicate, long-poll, edit, and physically erase stream messages via dense O(1) .sidx indexes without external message brokers.
Zero-GC LSM + ValueLog Engine
Pointer-free byte arenas and automatic ValueLog separation keep tail latency flat while cutting SSD compaction write amplification.
Multi-Raft & Zero-Downtime Ops
Survive hardware failures with Multi-Raft consensus, online partition migration, live secret rotation, and instant hard-linked hot backups.
Storage Core Architecture

Three Distributed Storage Engines Unified in One Self-Hosted Server

Transactional key-value storage, persistent O(1) message streams, real-time change subscriptions, and Multi-Raft consensus engineered into a single zero-dependency Go binary.

01 / 03
SSI ACID & Distributed 2PC

Serializable ACID Transactions, Atomic Counters & Optimistic Locks

Strict Serializable Snapshot Isolation, atomic 64-bit counters, optimistic CAS locks, and per-key TTL.

Supports up to 32 partitions per distributed 2PC transaction
O(1) Streams & GDPR Erasure

Built-In Persistent Message Streams with Deduplication & Cursors

Monotonic sequence logs with dense .sidx indexes, idempotent publishing, consumer cursors, and long-polling.

Persistent 4096-entry deduplication ring per stream
Zero-GC Arena & ValueLog

Zero-GC Memory Arenas & Key-Value Storage Separation

Pointer-free memory arenas and automatic separation of small keys from multi-megabyte values.

64-sharded Clock Second-Chance block cache
Multi-Raft & 4096 Partitions

Fault-Tolerant Multi-Raft Consensus & Data Colocation

Shard-aligned Group Commit WAL pipelines, colocation routing, and online partition migration.

Zero cross-shard locking during replication and failover
TLS 1.3 EKM & AES-256-GCM

Defense-in-Depth Cryptography, Subnet Allowlists & Live Key Rotation

Mutual session-bound authentication, pre-TLS CIDR allowlists, CRC32C checksums, and encryption at rest.

Boot-incarnation nonce protection for AES-256-GCM
Reactive Watch & Day-2 Ops

Live Watch Event Bus, Instant Hot Backups & Zero-Downtime Operations

Real-time prefix subscriptions with history catch-up, hard-linked hot backups, and ENOSPC auto-recovery.

Built-in Prometheus /metrics & Admin HTTPS API (:9095)
Launch in 4 Steps

How to Deploy and Operate Slyber DB

Go from a clean Linux host or container to an encrypted, production-ready transactional database or Multi-Raft cluster in under 2 minutes.

01 / 02
STEP 01 · Installation

Install Slyber DB in One Command

The installer detects your CPU architecture (amd64 or arm64), verifies SHA256 checksums, generates isolated 48-character secrets and an AES-256-GCM key, and starts the slyber_db systemd service.

STEP 01
curl -fsSL https://raw.githubusercontent.com/slyber-app/slyber-db/main/install.sh | sudo env ENABLE_ENCRYPTION=true bash
STEP 02 · Readiness & Diagnostics

Verify Node Readiness and Storage Shards

Run the built-in healthcheck utility against the client data port (:9110) and Admin HTTPS port (:9095) to confirm shard initialization, WAL durability settings, and TLS 1.3 listeners.

STEP 02
slyber_db --healthcheck=http://127.0.0.1:9110/healthz
slyber_db --healthcheck=https://127.0.0.1:9095/healthz
sudo systemctl status slyber_db
STEP 03 · Cluster Scaling

Run Standalone or Bootstrap a Multi-Raft Cluster

Run standalone immediately or link 3 or more servers into a fault-tolerant Multi-Raft cluster by posting your initial replica-group topology map to the Admin API.

STEP 03
curl -sk -X POST "https://10.0.1.11:9095/v1/admin/topology" \
  -H "Authorization: Bearer ${ADMIN_SECRET}" \
  -H "Content-Type: application/json" \
  --data-binary @topology.json
STEP 04 · Backups & Telemetry

Monitor Metrics, Benchmark & Run Hot Backups

Scrape Prometheus latency histograms, trigger instant hard-linked hot backups without pausing traffic, or benchmark throughput visually in Slyber Inspector.

STEP 04
curl -sk -H "Authorization: Bearer ${ADMIN_SECRET}" https://127.0.0.1:9095/v1/admin/stats
curl -sk -X POST "https://127.0.0.1:9095/v1/admin/backup" \
  -H "Authorization: Bearer ${ADMIN_SECRET}" -d '{"dest_dir":"/var/backups/sldb/snap_01"}'
Specifications

Full Technical Specifications of Slyber DB

Technical specifications of the Slyber DB storage engine, transaction isolation model, Multi-Raft consensus protocol, cryptographic controls, and administrative endpoints.

Storage Engines & Data Models
Unified transactional KV store (point, MultiGet, prefix/range K-way scan, CAS, signed 64-bit counters, TTL), persistent O(1)-indexed message Streams, and 64-sharded reactive Watch event bus; 65,535 user namespaces (uint16)
Partitioning & Shard Alignment
4096 virtual partitions (0..4095) with optional colocation routing; 1 to 64 power-of-two local physical shards, each with an isolated Group Commit WAL, LSM engine, ValueLog, and Stream manager; up to 4096 shard-aligned Multi-Raft groups
Transactions & Consistency Guarantees
Serializable Snapshot Isolation (SSI) with Read-Your-Own-Writes (RYOW) and Hybrid Logical Clocks (500ms max drift); 1-RTT single-partition commits and distributed 2PC across up to 32 partitions; linearizable ReadIndex quorum reads or local follower reads
Zero-GC Memory & LSM / ValueLog Layout
Pointer-free byte arenas for ArenaSkipList MemTables, 64-sharded Clock Second-Chance BlockCache, RangeDelIndex, and Raft slots; inline .sst storage for values <= 4 KiB and segmented ValueLog / .slog separation for values > 4 KiB up to 15 MiB
Persistent Streams & Live Watch Bus
Strict monotonic Seq numbering with dense 16-byte .sidx O(1) offset/CRC32C index; persistent IdempKey deduplication ring (4096 default); consumer group cursors, long-polling WaitTimeout, message patching, and Copy-on-Write GDPR physical redaction; Watch ring-buffer catch-up
Network Ports & Wire Protocol
Multiplexed binary SLDB wire protocol over TLS 1.3 on port 9110/TCP with dual HTTP/HTTPS Peek(1) /healthz responder; inter-node Multi-Raft transport on port 9111/TCP; Admin HTTPS API on port 9095/TCP; 20 MiB hard frame ceiling
Authentication & Subnet Protection
Three isolated cryptographic secret domains (Client, Cluster, Admin, >= 32 bytes) verified via mutual TLS 1.3 Exported Keying Material (EKM HMAC-SHA256) and Bearer tokens; pre-TLS CIDR IP allowlist dropping unauthorized IPs via instant TCP RST
Data Integrity & Encryption at Rest
Hardware CRC32C (Castagnoli) checksums across all SST blocks, WAL segments, stream indexes, IDENTITY, and TOPOLOGY.bin; optional AES-256-GCM disk encryption with monotonic BootIncarnation nonce protection; fdatasync / F_FULLFSYNC durability
Day-2 Operations & ENOSPC Recovery
Zero-downtime secret rotation (/v1/admin/secrets), graceful Multi-Raft leader draining (/v1/admin/drain), two-stage PEX2 online partition migration (/v1/admin/migrate), hard-linked hot backups with MANIFEST.sha256, and preallocated reserve.ballast disk-full recovery
Telemetry, Visual Bench & Deployment
Prometheus v0.0.4 /metrics exporter and /v1/admin/stats JSON diagnostics; visual CRUD inspection and benchmarking in Slyber Inspector; single static binary for Linux (amd64, arm64) and multi-arch image ghcr.io/slyber-app/slyber-db:latest
Use Cases

Where Slyber DB Delivers Maximum Architectural Value

01 / 03
01 Messaging & Chat Backends

Messengers, Group Chats & Collaboration Platforms

Colocate room metadata, unread message counters, persistent O(1) chat histories, message edits, and GDPR message redaction inside the same partition for single-WAL atomic updates.

02 Fintech & Billing Ledgers

Digital Wallets, Usage Quotas & Financial Ledgers

Eliminate double-spending and write skew across user balances and billing quotas with strict Serializable Snapshot Isolation, cross-partition 2PC commits, and overflow-checked 64-bit counters.

03 Event-Driven Microservices

Durable Job Queues, Webhooks & Event Sourcing

Replace separate cache and message queue clusters using built-in persistent streams with idempotency rings, server-side consumer group cursors, and low-latency long-polling waits.

04 Real-Time Control Plane

WebRTC Signaling State, Presence & Session Coordination

Persist active room topologies, participant permissions, rate-limit windows, and live Watch presence notifications alongside Slyber SFU Server and Slyber TURN Server.

05 Stateful AI Infrastructure

Conversational AI Memory & Multi-Agent Workflows

Store multi-agent conversation turns, tool execution journals, and reactive state triggers in one zero-GC engine with flat tail latency under bursty concurrent loads.

06 Zero-Trust & Compliance

Regulated Self-Hosted & Sovereign Storage

Meet sovereign data and compliance requirements with AES-256-GCM encryption at rest, mutual TLS 1.3 EKM authentication, subnet allowlists, and Copy-on-Write physical data erasure.

Knowledge Base & FAQ

Frequently Asked Questions about Slyber DB

Clear, engineering-focused answers about Slyber DB storage architecture, Serializable Snapshot Isolation, persistent message streams, Multi-Raft clustering, and encryption.

What is Slyber DB, and how does it replace running separate key-value, database, and message broker clusters? +
Modern backends often stitch together three or four separate systems: an in-memory key-value store for fast state, a relational or NoSQL database for ACID transactions, a log broker for durable event streams, and a pub/sub bus for live notifications. Slyber DB unifies all three engines inside one zero-dependency static binary: a Serializable Snapshot Isolation (SSI) key-value store, persistent O(1)-indexed message streams with consumer group cursors, and a 64-sharded reactive Watch event bus eliminating dual-write bugs and operational sprawl.
How does Slyber DB maintain predictable low tail latency without garbage collection pauses? +
Garbage-collected databases frequently suffer latency spikes when millions of cached objects are scanned in memory. Slyber DB places all hot-path data structures including skip-list MemTables, the 64-sharded Clock Second-Chance block cache, range-deletion indexes, and Multi-Raft log slots - inside flat, pointer-free byte arenas. Because the garbage collector sees zero pointers across those arenas, tail latency remains predictable even under sustained write and read throughput.
Why does Slyber DB separate small keys in the LSM tree from large payloads in the ValueLog? +
In standard LSM-tree databases, compacting multi-megabyte values alongside small keys rewrites gigabytes of unchanged data onto SSDs, causing severe write amplification and I/O stalls. Slyber DB automatically stores records up to 4 KiB directly inside immutable LSM .sst tables for fast point and range lookups, while routing larger payloads (up to 15 MiB) into segmented ValueLog files and dedicated stream segments. LSM compaction only merges lightweight pointers, extending SSD lifespan and keeping write throughput steady.
How do 4096 virtual partitions, colocation keys, and distributed 2PC transactions work together? +
Slyber DB divides the entire keyspace into 4096 virtual partitions mapped onto independent local Group Commit WAL pipelines and Multi-Raft groups. When records from different tables or message streams share a partition colocation key (for example, a chat room ID or organization ID), the routing engine places them in the exact same virtual partition so they commit atomically in a single WAL write. When transactions span up to 32 different partitions across multiple servers, Slyber DB executes a distributed two-phase commit (2PC) with Serializable Snapshot Isolation and automatic zombie-lock cleanup.
How do Slyber DB persistent Streams handle deduplication, random O(1) lookups, and GDPR data erasure? +
Traditional append-only log brokers make it difficult or impossible to edit a single message or permanently erase sensitive personal data for GDPR compliance without rewriting an entire topic offline. Slyber DB indexes every stream segment with a dense 16-byte .sidx file for O(1) random access by sequence number, supports persistent idempotency rings to block duplicate publishes, and provides native stream patching and redaction. Redacting a message immediately masks its payload and schedules background Copy-on-Write segment repacking to physically destroy the old bytes on disk.
How does Multi-Raft clustering handle server failures and live partition rebalancing without downtime? +
In cluster mode, replica groups replicate writes across nodes via Multi-Raft consensus over mutually authenticated TLS 1.3 channels. A 3-node cluster with replication factor 3 tolerates the sudden loss of any server with zero data loss and sub-second leader failover. Administrators can rebalance hot virtual partitions between replica groups online via a two-stage migration process streaming a background pre-copy while writes continue, followed by a brief single-partition Raft barrier cutover while the remaining 4095 partitions stay completely unaffected.
What happens when a server runs out of disk space, and how does the ballast file recover the database? +
Most LSM-based databases crash when a disk hits 100% capacity because compaction requires temporary free space to merge and delete old segments. Slyber DB preallocates a dedicated reserve.ballast file on startup and monitors filesystem capacity every 2 seconds. If free space drops below the configured threshold, the disk circuit breaker rejects only data-growing writes while keeping reads and deletions live. As soon as old keys or streams are deleted or trimmed, background compaction borrows space from the ballast file, reclaims dead segments, restores the ballast, and reopens writes without restarting the server.
How does Slyber DB protect data against disk corruption, unauthorized access, and network attacks? +
Every on-disk block, WAL frame, node identity passport, and cluster topology file is verified with hardware-accelerated CRC32C (Castagnoli) checksums and can be encrypted at rest with AES-256-GCM using monotonic boot-incarnation counters to prevent nonce reuse. On the network, unauthorized public IP addresses are dropped at socket accept via immediate TCP RST before TLS allocation, while client, cluster, and admin ports enforce three separate cryptographic secrets bound to TLS 1.3 Exported Keying Material (EKM).
Distributed Database Architecture Guide

What Is Slyber DB and Why Developers Choose It Over Multi-Service Storage Stacks

Slyber DB (SLDB) is a self-hosted, single-binary distributed transactional database server written in pure Go without external C dependencies. When engineering real-time products, financial ledgers, or high-throughput SaaS backends, teams typically assemble three separate infrastructure layers: an in-memory key-value cache for low-latency lookups, a transactional database for strict ACID guarantees, and a log broker for ordered event streams and consumer queues.Synchronizing data across those separate clusters introduces dual-write race conditions, network hops, and heavy operational overhead. Slyber DB solves this at the storage core by combining a Serializable Snapshot Isolation (SSI) key-value database, a persistent O(1) message streams engine, and a reactive Watch event bus inside one cohesive server.

Five Architectural Pillars Built Into Slyber DB Out of the Box

Whether you deploy a single standalone server on a virtual machine or run a geo-distributed cluster across bare-metal hosts, every capability is compiled into a single static binary. Explore the full Slyber DB architecture overview for internal storage details.

  1. Strict Serializable ACID Transactions, Colocation, and Distributed 2PC. The keyspace is divided into 4096 virtual partitions mapped onto shard-aligned Group Commit Write-Ahead Log (WAL) pipelines. Records across different logical namespaces and message streams that share a colocation key reside in the exact same partition, committing atomically in a single WAL write and a single round trip. For cross-partition updates spanning up to 32 partitions across cluster nodes, Slyber DB executes distributed two-phase commit (2PC) under Serializable Snapshot Isolation with Read-Your-Own-Writes, atomic 64-bit counters, compare-and-swap locks, per-key TTL expiration, and automatic zombie-lock cleanup.
  2. Zero-GC Memory Arenas and LSM + ValueLog Separation. To prevent garbage collection pauses under heavy concurrency, hot skip-list MemTables, the 64-sharded Clock Second-Chance block cache, range-deletion indexes, and consensus log buffers are allocated inside flat, pointer-free byte arenas. On disk, records up to 4 KiB live inline inside immutable LSM .sst tables, whereas larger values up to 15 MiB are written to segmented ValueLog and stream files-dramatically lowering SSD write amplification during background compaction.
  3. Persistent Message Streams with O(1) Indexing and GDPR Physical Erasure. Built-in persistent message streams and reactive Watch subscriptions eliminate the need for standalone message brokers. Every stream assigns strictly sequential numbers indexed by a dense 16-byte .sidx file for O(1) random seeks, enforces persistent deduplication rings to prevent duplicate deliveries on network retries, tracks server-side consumer group cursors, and supports blocking long-polling waits. Unlike immutable log brokers, Slyber DB supports both in-place message editing and GDPR physical erasure through background Copy-on-Write segment repacking.
  4. Fault-Tolerant Multi-Raft Consensus and Online Partition Migration. Transitioning from a single server to a Multi-Raft cluster deployment requires zero application redesign. Replica groups maintain quorum over mutually authenticated TLS 1.3 links on port :9111, electing new leaders in fractions of a second if a machine goes offline. Operators can rebalance individual hot partitions across replica groups under live load via two-stage online migration without pausing traffic on the remaining 4095 partitions. In real-time communication stacks, Slyber DB serves as a unified state, chat history, and quota backend alongside Slyber SFU Server and Slyber TURN Server.
  5. End-to-End CRC32C Integrity, AES-256-GCM Encryption, and Self-Healing Disk Protection. Every disk block, WAL frame, and cluster topology map is verified by hardware CRC32C checksums and optional AES-256-GCM encryption at rest. Network listeners enforce pre-TLS subnet allowlists and separate client, cluster, and admin secrets with zero-downtime secret rotation. For Day-2 operations and Prometheus monitoring, Slyber DB includes instant hard-linked hot backups, graceful Raft leader draining, visual benchmarking via Slyber Inspector, and a preallocated reserve.ballast file that automatically recovers full disks without restarting the node.
Self-Hosted Distributed Transactional KV, Streams & Watch Database

Ready to unify transactional storage, message streams, and live events in one binary?

Stop maintaining separate clusters for caching, transactional storage, message queues, and real-time pub/sub. Deploy the single-binary Slyber DB server with Multi-Raft consensus, SSI ACID transactions, persistent O(1) streams, and AES-256-GCM encryption on your own infrastructure.