How saostad/sync-engine works
Key Components to Include:
Core Engine Component
• Main configuration interfaces (mappings and syncFns)
Data Flow Components
• Source Data Store (Input)
• Destination Data Store (Output)
• Transformation Pipeline
• Change Detection System
• Synchronization Executor
Middle Level (Core Processing)
a. Field Mapper
• Shows the transformation of source fields to destination format
• Mapping configuration interface
b. Change Detector
• Represents the comparison logic
• Three outputs: Inserted, Updated, and Deleted records
c. Sync Executor
• Shows the execution of sync functions
• Three sync function types (insertFn, updateFn, deleteFn)
Important Details
• Async operation indicators (since many operations are asynchronous)
• Configuration interfaces showing the structure of mapping definitions
• Key comparison logic representation
• Field transformation pipeline
Specific Implementation Guidelines:
• Source Data | Dest Data |
• Sync Engine |
• Field Mapper | |
• Change Detector | |
• Sync Executor | |
A configuration section on the side
• Configuration |
• Mappings |
• Sync Fns |