What is the best approach to upload 1000+ records to a server that also contains images for each record from an iOS/Android app?

Viewed 1549

I have a app working offline. It is assumed that 1000+ records are created with images in each record during this period and whenever connectivity is established. What should be the approach to send all the 1000+ records to server that also handles any interruption between the network calls or API failure response.

I assume I have to send records in batches but how to handle the interruption and maintain consistency and prevent any kind of data loss.

9 Answers
Related