Project

General

Profile

Development #7110

Updated by Kyle Chong 3 months ago

Refer to: docs/planning/modules/M02_Product_Data_Sync.md 

 Implement Product & Master Data Sync (M02) (docs/planning/modules/M02_Product_Data_Sync.md). Create the common Backend processing layer for master-data events received new-store package from Kafka. 

 Scope: 

 * Process Add/Create. 
 * Process Update. 
 * Process Delete/Deactivate. 
 * Route different master-data entities to their respective handlers. 
 * Validate entity/version information before applying changes. 
 * Prevent duplicate events from creating duplicate records. 
 * Prevent older events from overwriting newer data. 
 * Use appropriate transactional handling a consistent point in time: scoped Firebird FDB plus matching Master.db, manifest, schema version, LastSyncChangeVersion, checksum and signature. Done when updating related data. 
 * Record successful and failed processing. 

 The processing layer must remain independent from Kafka so a new store can verify the business logic is not tied directly to the transport. 

 Done when: Backend correctly applies Add/Update/Delete master-data changes and safely handles duplicate, stale and invalid events. package before installation.

Back