Velocity
PROTOCOL: 2.4.0-ALPHA
NOT FOR PRODUCTION

SYSTEM
COREINTEGRATION.

"Velocity is an accelerated low-latency binary store. This specification defines the integration layer for the Alpha storage engine."

Low-Level Architecture

VelocityDB bypasses standard high-level abstractions to interact directly with system memory and disk IO using **Rust's zero-cost abstractions**.

Zero-Copy Deserialization

Incoming VDB-Binary packets are mapped directly into application memory using **FlatBuffers**. No heap allocations occur during read cycles.

IO-Uring Integration

Linux kernel asynchronous IO submission queues are used to minimize syscall overhead for AOF write operations.

System Topology Matrix v2.4External Client SpaceNode.js AppVDB-Client-JSRust ServiceVelocity-SDKTerminal / CLIVelocity-ControlTCP Port: 2005Raw Binary FlatBuffers StreamVelocityDB Production ClusterNetwork Logic (IO-Uring / Epoll)Bypass OS Overhead • Zero-Copy ParsingCore Engines (Rust)Concurrent HashBloom FiltersDurability LayerAOF FlushSnapshot RDBCritical Path: Memory InboundAsync IO / Non-Blocking

State Propagation

INGESTION

"Data enters the pipeline via the custom V-Proto binary stream."

MUTATION

"The atomic engine updates the Memtable and appends to the WAL simultaneously."

COMPACTION

"Background threads merge SSTables to maintain O(log N) read performance."

Integration Guide

01

Bootstrap Client

Select your architectural target and initialize the Velocity connection pool.

Velocity-Node SDK
import { VelocityPool } from '@velocity/core';

const vdb = new VelocityPool({
  node: 'alpha-cluster.vdb.io',
  auth: process.env.VDB_TOKEN
});

await vdb.connect();
Native Rust SDK
use velocity_sdk::Client;

let client = Client::builder()
  .endpoint("vdb://internal-v1")
  .pool_size(16)
  .build().await?;
02

Atomic KV Operations

Velocity provides linearizable KV operations with sub-microsecond latency benchmarks.

Protocol Operations
// Linearizable SET with TTL
await vdb.set('session:0xF1', { active: true }, { ttl: '2h' });

// Fast GET (Zero-Copy Path)
const data = await vdb.get('session:0xF1');

// Atomic Increment (Server-Side)
await vdb.incr('counters:req_total', 1);

V-Proto Binary Frames

SegmentTypeBitsSpec
MagicU3232"VELO" (0x56454C4F)
OpCodeU88Operation Control Byte
FlagsU88Consistency & Compression Flags
LenU6464Payload Size (LE)
BodyPayloadVarBinary Data Body
CheckCRC3232Hash Integrity Verification

SDK Security Advisory

DURING ALPHA STAGE, WE DO NOT RECOMMEND STORING RAW PASSWORDS OR PCI-SENSITIVE DATA IN THE CLOUD INSTANCES. ALL CONNECTIONS ARE TLS 1.3 ENCRYPTED BY DEFAULT.