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, once.
  3. Sync again. The server answers "replayed". 0 chunks go, and the count stays at 1.

What passed the link

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

Frames

Server — db.kinedb.com

The selected photo:
—
–
copies of the photo
–
copies of the record
0 = not on the server yet · 1 = on the server, once · 2 or more would be a duplicate. A phone that sends again must not make a second copy.

Every photo of this phone

No photo yet.

The last sync

No sync yet.