How voodooentity/gits works
Main Components
a) Core Storage Layer:
• Entity Storage (for storing nodes/vertices)
• Relation Storage (for storing edges)
• Index Management
• Mutex Handler (for thread safety)
b) API Layers (represent as separate layers):
• High-level Query Interface
• Storage API (direct access)
• Data Mapping Interface
Key Architectural Elements
[Client Application]
• ↓
[GITS Instance Factory]
• ↓
┌─────────────────────┐
• Query Builder │
• Interface │
• ┘
• ↓
┌─────────────────────┐
• Storage Engine │
• ┤
• Entity Storage │
• Relation Storage │
• Indexes │
• Mutex Handler │
• ┘
Important Relationships
a) Instance Management:
• How multiple instances can be created
• Default instance relationship
b) Data Flow:
• Flow from query builder to storage engine
• Mutex handling points
• Relationship mapping paths
Technical Details
• Transport Entity structure
• Relation structure
• Query builder flow
• Storage API access points
Implementation Notes
• The in-memory nature of the storage
• Thread-safe access patterns
• The graph structure (nodes/edges)
• Multiple instance capability
• Query builder pattern
• Direct storage API access
Key Architectural Patterns to Highlight
• Factory pattern for instance creation
• Builder pattern for queries
• Graph data structure
• Thread-safe access patterns