Bringing this topic back up here. 

I'm thinking about a custom replicator that would talk to IPFS instead of 
Sync Gateway/CouchDB.

What would be needed for this to be implemented? Ideally in a way that 
could be read in from a web app also. I've been following developments at 
OrbitDB <https://github.com/orbitdb/orbit-db/issues/4> to get some ideas, 
most recently a plugin that replicates from OrbitDB (IPFS based DB) to 
PouchDB: https://github.com/garbados/pouchdb-orbit

My understanding of replication is its simply reading in and applying the 
changes feed and then, dealing with conflicts (the complicated part I 
guess).


Any pointers would be much appreciated, thanks. 

On Saturday, 21 October 2017 00:46:48 UTC+1, Adam Wilson wrote:
>
> Continuing on from 
> https://github.com/couchbase/couchbase-lite-core/issues/274
>
> I have been thinking about this, and I think it would be a great asset to 
> be able to use IPFS and its "Merkle DAG" storage as a remote data store for 
> LiteCore. I have been reading around, and to answer your previous questions 
> Jens:
> "how does it manage mutable data?" - you can use IPNS to store mutable 
> data, as a "peer ID". This would be equivalent to a document ID. 
>  "Does it have a notion of a revision ID? Or I guess the hash of the data 
> may form the revision ID, in which case there's a different identifier for 
> the document itself?" - As far as I can tell, the hash is the link to 
> the immutable data, so similar to the revision ID in CouchDB. In terms of 
> the "document itself", I think that can be referenced with a CRDT structure 
> and/or IPNS (I'm still wrapping my head round all this stuff). 
>
> There are a few projects building LevelDB compatible layers on top of 
> IPFS, so a CouchDB / LiteCore compatible layer should be feasible. (Most of 
> the projects are written in Javascript, or Go).
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/eb377b75-9df5-4b3a-b147-056a9b31b89d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to