SiafuDB Integration
NTL and SiafuDB are designed as companion layers — NTL moves signals, SiafuDB remembers them. Together they form a unified nervous system with memory.The Relationship
- Signals can write state as they propagate (deposit)
- State changes can trigger new signals (emit)
- The synapse topology and the graph storage share structure
Enabling SiafuDB
Depositing State from Signals
Signal handlers can deposit data into the local SiafuDB instance:Emitting Signals from State Changes
SiafuDB can watch for graph mutations and emit signals:Shared Topology
The synapse topology can be stored in SiafuDB, creating a persistent map of network structure:- Recovery — A node that restarts can rebuild its synapse state from SiafuDB
- Analytics — Query the graph to understand signal flow patterns
- Optimization — The propagation engine can use historical paths to improve routing
Sync Modes
| Mode | Description | Use Case |
|---|---|---|
local-only | State stays on this node | Development, isolated nodes |
eventual | State syncs across nodes via CRDT | Production default |
strong | State requires quorum confirmation | Financial, critical data |
Querying the Graph
Signal handlers can query SiafuDB to enrich their processing:The Nervous System Pattern
When NTL + SiafuDB are fully integrated, you get a nervous system:- Sensory input — Adapters ingest external data as signals
- Signal propagation — NTL routes signals through the neural graph
- Processing — Handlers process signals and make decisions
- Memory formation — State deposits into SiafuDB’s graph
- Memory recall — Future signal processing queries past state
- Reflexive output — State changes trigger new signals automatically