Skip to content
CVL CORECrash-Isolated IPC Event Bus

Atomic Database Persistence & Checkpointing

[SPECIFICATION] Out-of-Process Storage Isolation & Zero-Tick-Tax Invariant

The CVL CORE Persistence Architecture strictly decouples high-frequency kinematic state (locked inside the < 50 MB C-memory matrix) from cold relational or document storage. All disk I/O, transaction commits, and ledger checkpoints execute asynchronously across the Loopback Sidecar IPC Broker (127.0.0.1:55557), guaranteeing that database disk latency, connection pool exhaustion, or storage locks inflict exactly 0.00ms impact on the 30Hz/60Hz simulation clock.

[STATUS // POST-DEMO PIPELINE — ADAPTER SELECTION IN PROGRESS] TURNKEY STORAGE ADAPTER BENCHMARKING

Core IPC Transport Verified — Reference Database Templates Coming Next: The non-blocking loopback persistence bus (127.0.0.1:55557) and binary routing contracts are fully operational in Protocol v3.4.0. Formal benchmarking and selection of pre-configured turnkey database sidecars (embedded transactional vs. distributed enterprise SQL/NoSQL) is scheduled immediately following the Live Testbed evaluation phase.


[SEC 01.0] Hot-State vs. Cold-State Architectural Split

Section titled “[SEC 01.0] Hot-State vs. Cold-State Architectural Split”

Traditional monolithic game servers and industrial twin platforms frequently stall when synchronous database queries or ORM object allocations contend with the physics thread—or they force operators to rent massive RAM instances by holding cold relational tables in main memory. CVL CORE enforces a strict two-tier boundary:

State Classification Memory & Execution Host Update Cadence Primary Responsibility
Hot Kinematic State CVL CORE Micro-Kernel (< 50 MB RSS) 30Hz / 60Hz Real-Time Contiguous entity transforms, 3D ballistic CCD, 9-cell broadphase hashing, and velocity envelopes.
Cold Persistent State Out-of-Process Persistence Sidecars Event-Driven / Batched Account authentication, inventory ledgers, world-state checkpointing, and enterprise ERP/SQL auditing.
flowchart LR
  Edge["Edge Client / Sensor<br/>(Port 55555)"]:::clientNode
  Reactor["Ingress Socket Reactor<br/>(Zero-Copy Frame Router)"]:::kernelNode
  Matrix["30Hz Hot Kinematic Matrix<br/>(64B Stride • < 50 MB RSS)"]:::kernelCore
  Broker["Loopback Sidecar Broker<br/>(127.0.0.1:55557 • 256 Slots)"]:::kernelNode
  DBSidecar["Persistence Sidecar Daemon<br/>(Pluggable DB Engine)"]:::sidecarNode
  Disk[("Local Embedded or<br/>Remote Enterprise DB")]:::dbNode

  Edge <==>|"Kinematic Stream"| Reactor
  Reactor <-->|"Hot Path"| Matrix
  Edge <==>|"Sidecar Event Frame"| Reactor
  Reactor <==>|"0.00ms Tick Bypass"| Broker
  Broker <==>|"Async Loopback IPC"| DBSidecar
  DBSidecar <==>|"ACID Commit / Batch Write"| Disk

  classDef clientNode fill:#0c4a6e,stroke:#38bdf8,stroke-width:2px,color:#f0f9ff
  classDef kernelNode fill:#064e3b,stroke:#10b981,stroke-width:2px,color:#ecfdf5
  classDef kernelCore fill:#047857,stroke:#34d399,stroke-width:2.5px,color:#ffffff
  classDef sidecarNode fill:#3b0764,stroke:#c084fc,stroke-width:2px,color:#faf5ff
  classDef dbNode fill:#1e1b4b,stroke:#a855f7,stroke-width:2px,color:#e9d5ff

[SEC 02.0] Database-Agnostic Sidecar Transport (127.0.0.1:55557)

Section titled “[SEC 02.0] Database-Agnostic Sidecar Transport (127.0.0.1:55557)”

Because the CVL CORE micro-kernel communicates with persistence workers exclusively through a fixed-stride binary loopback framing contract, studios and enterprise integrators are never locked into a proprietary database vendor:

  1. Zero-Tick-Tax Reactor Bypass: Storage requests (mapped across 256 O(1) routing slots on 127.0.0.1:55557) are routed directly at the socket ingress boundary without acquiring locks on the 30Hz physics thread.
  2. Crash & Stall Isolation (Circuit-Breaker Bounce): If an external database server experiences a disk stall, network partition, or schema migration restart, the micro-kernel continues stepping spatial physics at 30Hz and immediately returns a deterministic service-unavailable status flag to the caller.
  3. Language & Driver Freedom: Persistence sidecars can be implemented in C#, Rust, Go, C++, or Python, utilizing native connection pools and async drivers appropriate for the deployment tier.

[SEC 03.0] Post-Demo Database Selection & Reference Profiles

Section titled “[SEC 03.0] Post-Demo Database Selection & Reference Profiles”

Following the completion of the initial Live Testbed evaluation and 7 - 14 Day Linux VPS burn-in, CVL CORE will benchmark and publish official turnkey persistence sidecar templates across three target deployment tiers:

  • Tier 01 — Embedded Single-Node Transactional Ledger (Indie / Edge Gateway Target): Zero-configuration, single-file ACID persistence optimized for $15–$40 AUD bare-metal Linux VPS nodes where running a heavy standalone database daemon is unnecessary.
  • Tier 02 — High-Concurrency Relational Cluster (MMO & Multi-Node Target): Asynchronous connection-pooled relational adapter engineered for multi-zone character state hydration, atomic trade ledgers, and cross-shard account locking.
  • Tier 03 — Industrial Time-Series & Telemetry Sink (Robotics / Digital Twin Target): High-throughput append-only batch writer designed to stream continuous 30Hz/60Hz spatial audit trails into enterprise data warehouses and compliance ledgers.
[CHECKLIST // STORAGE INVARIANTS] PERSISTENCE ISOLATION & CHECKPOINT MANDATES

1. Zero Synchronous Disk I/O on Physics Thread: No database driver, file descriptor, or SQL query may ever execute inside the 30Hz/60Hz simulation loop.
2. Loopback-Only Storage Bus: Persistence sidecars must bind strictly to 127.0.0.1:55557 and complete local credential verification before registering an IPC routing slot.
3. Graceful Degradation under DB Outage: Real-time spatial movement and collision deconfliction must remain 100% operational even if all external persistence daemons are offline.