Offline photo sync with kinedb

The phone saves a photo and its record in an embedded kinedb database, with no network. The sync sends the photo as chunks named by their hash. The link between the phone and the server is a proxy that you control: slow it down, cut it, or lose a reply.

Loading…

Phone

Waiting to be sent

—

Photos on the phone

Log

Link (proxy)

Speed:
Scenario 1 — the connection drops halfway
  1. Save a photo of 1 MB or more.
  2. Sync now. The sync fails. The server holds no row of the photo, only some of its blocks (right side).
  3. Sync again. Only the missing chunks go: see "chunks sent now".
Scenario 2 — the server commits, the phone misses the reply
  1. Save a photo.
  2. Sync now. The sync fails. The server holds the photo and its record, once: they are one commit.
  3. Sync again. The server answers "replayed" for both. 0 chunks go, and nothing is stored twice.

What passed the link

0chunks
0chunk bytes
0pushes
0drops
0replies lost

Frames

Server — db.kinedb.com

The selected photo:
—

Photos on the server

No photo yet.

The last sync

No sync yet.