Development #7109
Updated by Kyle Chong 3 months ago
Refer to: docs/planning/modules/M02_Product_Data_Sync.md Implement the Qube Backend consumer responsible for listening to upstream master-data Kafka topics. Scope: * Connect to configured Kafka broker/topics. * Listen continuously for master-data events. * Deserialize Product & Master Data Sync (M02) (docs/planning/modules/M02_Product_Data_Sync.md). Replace timestamp/full-pull assumptions with global ChangeVersion ordering. Every create, update and validate incoming messages. * Validate required event information. * Route valid events to delete must be recorded and applied after the appropriate master-data processor/handler. * Handle malformed or unsupported messages without stopping the consumer. * Record useful diagnostics including Topic, Event ID, Entity, Operation installed snapshot version, with duplicate and processing error. * Ensure consumer can reconnect after Kafka/network interruption. gap detection. Done when: Backend can continuously receive Admin Portal master-data events and route valid messages for processing without invalid messages stopping when out-of-order Kafka delivery cannot leave the service. Cashier on inconsistent data.