Replace BLite with Surreal embedded persistence
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m21s

This commit is contained in:
Joseph Doherty
2026-02-22 05:21:53 -05:00
parent 7ebc2cb567
commit 9c2a77dc3c
56 changed files with 6613 additions and 3177 deletions

View File

@@ -56,7 +56,15 @@ Terminal 3:
dotnet run -- --node-id node3 --tcp-port 5003 --udp-port 6003
```
Changes made on any node will automatically sync to all peers!
Changes made on any node will automatically sync to all peers!
### Import Snapshot Into Surreal (Migration Utility)
```bash
dotnet run -- --migrate-snapshot /path/to/snapshot.json --target-db /path/to/data.rocksdb
```
This imports a CBDDC snapshot into embedded Surreal RocksDB and validates parity (counts plus oplog hash spot checks).
## Available Commands
@@ -149,7 +157,7 @@ var page = await users.Find(u => true, skip: 10, take: 5);
## Architecture
- **Storage**: SQLite with HLC timestamps
- **Storage**: Surreal embedded RocksDB with HLC timestamps
- **Sync**: TCP for data transfer, UDP for discovery
- **Conflict Resolution**: Last-Write-Wins based on Hybrid Logical Clocks
- **Serialization**: System.Text.Json