Development #7088
Updated by Kyle Chong 3 months ago
Refer to: docs/planning/01_Architecture.md Handle communication failure between Backend Server (docs/planning/01_Architecture.md). Build the documented Backend API, worker or service. Define contracts, retries, security and Cashier. Scope: * Detect Kafka availability. * Detect LAN communication availability. * Apply the configured communication/fallback strategy. * Queue messages diagnostics, then add automated tests. Done when Cashier/QubeBiz integration passes the target is temporarily unavailable. * Retry queued messages. * Prevent duplicate processing when communication is restored. * Maintain message ordering where required. * Recover after Backend restart. * Recover after Cashier restart. * Recover after Kafka restart. * Clearly expose current communication mode/status to Backend monitoring. Done when: Temporary Kafka/network failure does not cause POS messages to be lost and communication can recover safely. linked acceptance scenario.