wohali opened a new issue #1503: Mobile First replication protocol
URL: https://github.com/apache/couchdb/issues/1503
 
 
   @janl:
   >* needs HTTP2 / single connection
   >* multipart/mixed with decompressed attachments (for browsers)
   >The original protocol design didn’t take mobile devices into account and 
through PouchDB et.al. we are now learning that there are number of downsides 
to our protocol. We’ve helped a lot with introducing `_bulk_get`/`_revs`, but 
that’s more a bandaid than a considered strategy ;)
   >
   >That new version could also be HTTP/2-only, to take advantage of the new 
connection semantics there.
   
   @daleharvey:
   >So yup I think there are huge and not too complicated improvements here, 
its tricky as the improvements lie somewhere between the replicator and core 
api, but I think the 2 main ones off the top of my head are
   >
   >1. Mobile clients almost never need old deletions, an easy way to tell the 
replicator to ignore deletions that happen before you start replicating would 
be great (I think this could be fairly easily implemented by the replicator)
   >
   >2. The replication protocol is chatty, its optimised mostly for a case 
where there is a chance you have multiple filtered replications running, the 
actual data from the changes feed is never actually read it is just used to 
pick up revisions which are then read (the bulk_get). I believe it should be 
possible to have replication that is a stream of the full documents where 
changes have occured (deduped). This would basically be a formalised version of 
@nolanlawson's https://github.com/nolanlawson/pouchdb-replication-stream that 
took into account live replication (so basically gave  users the advantages of 
replication-stream without needed to do any work, I believe this was in the 
order of 1000X speedups for large data sets)
   >
   >I think this may be tricky and we definitely need to consider edge cases 
(make sure we arent too bad with multiple filtered replications etc) but could 
be a monumentally large speedup

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to