Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-3150

Reduce the verboseness of the DataSync protocol

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None

    Description

      Currently the size of information being exchanged between clients and the SyncServer is very large. Basically the complete document is being sent, even parts that have not been changed.

      For example:

      {"msgType":"patch",
      "id":"12345",
      "clientId":"681fa5f1-6092-49bd-9df3-40f90cc74412",
      "edits":[
        {"clientVersion":0,
         "serverVersion":0,
         "checksum":"",
         "diffs":[
           {"operation":"UNCHANGED","text":"{\"name\":\"Luke Skywalker\",\"profession\":\"Jedi"},
           {"operation":"ADD","text":"2"},
           {"operation":"UNCHANGED","text":"\",\"hobbies\":[{\"id\":\"8eb0ce6e-b25b-486e-963c-a7fe88e764f1\",\"description\":\"Fighting the Dark Side\"},{\"id\":\"9facc6d8-a726-4b79-bfd6-931ee09c4d95\",\"description\":\"going into Tosche Station to pick up some power converters\"},{\"id\":\"49b3ccbd-c795-4887-9cc7-a1ea554a0247\",\"description\":\"Kissing his sister\"},{\"id\":\"9ca2e54c-2176-4d1d-a591-82152ad6e402\",\"description\":\"Bulls eyeing Womprats on his T-16\"}]}"}]}]}
      

      In the above example, the only thing that has been changed in the addition of a 2 to Jedi. But as we can see also the UNCHANGED sections are being sent. The server and clients have this information available so we should be able to reduce this.

      This task might not be necessary at after lfryc suggested updates to the protocol.

      Attachments

        Activity

          People

            dbeveniu Daniel Bevenius (Inactive)
            dbeveniu Daniel Bevenius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: