Synchronization Architecture
Published Updated
CLI DevServer synchronization architecture and live file workflows.
CLI Local File Sync Workflow & DevServer Pipeline#
Explains how CLI DevServer synchronizes local .airpds and .airpm files with Aircada Studio and Engine in real time.
Dual-File Synchronization Architecture
Aircada provides real-time local file synchronization via CLI DevServer (aircada dev). This architecture bridges local project workspace files (datasets/*.airpds and option-models/*.airpm) with Aircada Studio and Engine.
text
LOCAL WORKSPACE AIRCADA ENGINE
โโโโโโโโโโโโโโโโโโโโโโโโ DevServer WS โโโโโโโโโโโโโโโโโโโโโโโ
โ datasets/*.airpds โโโโโโโโโโโโโโโโโโบโ Engine Hydration โ
โ option-models/*.airpmโ (aircada dev) โ & Studio Adapters โ
โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
Key Synchronization Characteristics
- Atomic File Write Protections: Writes to local
.airpdsand.airpmfiles use atomic.tmp$\rightarrow$fs.renameoperations, ensuring local files are never corrupted or truncated on disk.
updatedAtTimestamp Reconciliation: Startup handshakes compareupdatedAttimestamps between local files and Engine state to establish single-source-of-truth reconciliation.
- Live Studio UI Refreshes: Edits to
.airpdsor.airpmfiles trigger real-timeonPricingModelAdapterReadyview adapter updates in Web Studio UI without requiring full page reloads.
- Echo Suppression: Content hashing prevents infinite sync feedback loops between disk watchers and WebSocket events.