Improve Data Syncing Between Devices and Server at Scale

XMLWordPrintable

      Scale target: 100,000 records, scaling up to 1,000,000 records. Which record types count: [TBD/CLARIFICATION REQUIRED]

      Background / Context

      Devices in camps sync beneficiary data with the server and with each other, often on unstable networks.

      Problem Statement

      • With a large number of pending records, syncing can take several hours.
      • Devices may take a long time to receive updates from other devices.
      • Updating an existing beneficiary can result in loss of previously saved linked information.
      • In some cases the same record may be processed more than once.

      Current Behaviour

      Slow sync, possible loss of linked information, and possible duplicate processing.

      Expected Behaviour / Requirement

      • Faster uploading and receiving of records.
      • One failed record does not stop other records from syncing.
      • Existing beneficiary information is protected during updates.
      • Duplicate records are prevented during syncing.

      User Story

      As a camp user, I want fast, safe syncing so that my data reaches the server and other devices without loss or duplication.

      Acceptance Criteria

      • Given a large number of pending records, then they sync within a reasonable time ([TBD/CLARIFICATION REQUIRED]).
      • Given successfully saved records, then they are available on the server and other connected devices.
      • Given an update to an existing beneficiary, then no records or linked information are lost.
      • Given syncing, then duplicate records are not created.
      • Given a failed record, then it can be retried without affecting other records.
      • Given an unstable camp network, then syncing continues to work reliably.

      Business Rules / Validations

      Duplicate detection rule: [TBD/CLARIFICATION REQUIRED]

      Dependencies

      Server-side readiness for the volume: [TBD/CLARIFICATION REQUIRED]. Offline syncing and diagnostic sharing story.

      Impact / Affected Areas

      Sync, beneficiary updates, linked records, all devices.

      Out of Scope

      Automatic sync resume after offline periods (covered in the offline syncing story).

      QA / Testing Considerations

      Test with large pending queues, simulated network drops, a forced failed record, and multiple devices.

      Open Questions / Clarifications

      • Acceptable sync time at 100k and 1M records?
      • How are conflicting edits from two devices handled?

              Assignee:
              Ankit Singh Bish
              Reporter:
              Shivani Garg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: