Development #7113
Updated by Kyle Chong 3 months ago
Implement/POC LAN-based synchronization between Qube Backend Server Refer to: Product & Master Data Sync (M02) (docs/planning/modules/M02_Product_Data_Sync.md). After snapshot installation, resume Backend/Kafka deltas from LastSyncChangeVersion + 1. Ignore duplicates, stop/report on version gaps, and Qube Cashier POS for stores where Cashier communicates directly with the local Backend. Scope: * Confirm and implement the appropriate LAN communication approach according to POS+ architecture. * Allow Cashier terminals to connect/register with the Backend where required. * Deliver master-data events to Cashier through the store LAN. * Support multiple Cashier terminals. * Handle Cashier offline/disconnected scenarios. * Handle reconnect after network interruption. * Determine how missed changes are resumed/recovered. * Use the same M02 master-data event contract used by Kafka. * Log communication and delivery failures. LAN transport must only handle delivery. Add/Update/Delete business processing must not be duplicated inside the LAN implementation. offer controlled re-seed. Done when: Backend can deliver master-data events to Cashier through LAN when an old snapshot catches up without requiring Cashier to connect to Kafka. missing updates or reapplying data.