Expand description
Comprehensive incremental updates architecture for GraphRAG-RS
This module provides zero-downtime incremental updates with ACID-like guarantees, intelligent cache invalidation, conflict resolution, and comprehensive monitoring.
§Architecture Goals
- Zero-downtime updates: System remains available during modifications
- Consistency guarantees: ACID-like properties for graph operations
- Performance: Updates should be 10x+ faster than full reconstruction
- Scalability: Handle thousands of concurrent updates per second
- Observability: Complete audit trail of all changes
§Key Components
IncrementalGraphStoretrait for atomic update operationsChangeRecordandChangeLogfor tracking modificationsGraphDeltafor representing atomic change setsConflictResolverfor handling concurrent modificationsSelectiveInvalidationfor cache managementUpdateMonitorfor change tracking and metricsIncrementalPageRankfor efficient graph algorithm updates
Structs§
- Batch
Metrics - Batch metrics for monitoring
- Cache
Region - Cache region affected by changes
- Change
Event - Change event for monitoring and debugging
- Change
Record - Change record for tracking individual modifications
- Conflict
- Conflict detected during update
- Conflict
Resolution - Resolution for a conflict
- Conflict
Resolver - Conflict resolver with multiple strategies
- Consistency
Report - Consistency validation report
- Document
- Document type for incremental updates
- Graph
Delta - Atomic change set representing a transaction
- Graph
Statistics - Graph statistics for monitoring
- Incremental
Config - Configuration for incremental operations
- Incremental
Graph Manager - Incremental graph manager (simplified version without incremental feature)
- Incremental
Statistics - Comprehensive statistics for incremental operations
- Invalidation
Stats - Statistics about cache invalidations
- Operation
Log - Log entry for an operation
- Performance
Stats - Performance statistics for monitoring
- Rollback
Data - Data needed for rollback operations
- Transaction
Id - Transaction identifier for atomic operations
- Update
Id - Unique identifier for update operations
- Update
Metric - Metric for tracking update operations
Enums§
- Change
Data - Data associated with a change
- Change
Event Type - Types of change events that can be published
- Change
Type - Types of changes that can occur
- Conflict
Strategy - Conflict resolution strategies
- Conflict
Type - Types of conflicts
- Delta
Status - Status of a delta operation
- Invalidation
Strategy - Cache invalidation strategies
- Operation
- Operations that can be performed
Traits§
- Incremental
Graph Store - Extended trait for incremental graph operations with production-ready features