You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Jim Klo <ji...@sri.com> on 2013/11/05 06:35:13 UTC

CouchDB vs RethinkDB

Some friends passed this on to me - looks interesting. Wonder if anyone here has any idea how it compares to CouchDB?

http://rethinkdb.com

Best,

- Jim

Jim Klo
Senior Software Engineer
SRI International
t: @nsomnac

Re: CouchDB vs RethinkDB

Posted by Andy Wenk <an...@nms.de>.
seems, that it is a little more comparable with MongoDB ...

http://rethinkdb.com/docs/rethinkdb-vs-mongodb/

http://rethinkdb.com/docs/comparison-tables/




On 5 November 2013 06:35, Jim Klo <ji...@sri.com> wrote:

> Some friends passed this on to me - looks interesting. Wonder if anyone
> here has any idea how it compares to CouchDB?
>
> http://rethinkdb.com
>
> Best,
>
> - Jim
>
> Jim Klo
> Senior Software Engineer
> SRI International
> t: @nsomnac
>



-- 
Andy Wenk
Hamburg - Germany
RockIt!

http://www.couchdb-buch.de
http://www.pg-praxisbuch.de

GPG fingerprint: 3B6D 07F8 8732 CD61 D078  EF7A 63BA 495D 0F15 F21F

Re: CouchDB vs RethinkDB

Posted by Ryan Mohr <ry...@kumu.io>.
That's essentially what PouchDB has done, yeah?


On Tue, Nov 5, 2013 at 11:13 AM, Jim Klo <ji...@sri.com> wrote:

>
> On Nov 5, 2013, at 11:08 AM, Ryan Mohr <ry...@kumu.io>
>  wrote:
>
> > Rethink caught my interest a little while back too.  Looks like a well
> > designed database and a great collection of tools to support it.
> >
> > The immediate difference that jumped out at me (and the ultimate reason I
> > chose couch over rethink) is that rethink does not and will never support
> > master-master replication.  See this thread for some background:
> > https://github.com/rethinkdb/rethinkdb/issues/1019#issuecomment-19573253
> >
> > Both databases are "distributed" but in different respects.  CouchDB is
> > "distributed" in the same way git is "distributed" (eg we're all equals).
> > RethinkDB is "distributed" in the scaling sense (sharding / cluster-wide
> > queries) but there is always an authoritative master.
> >
>
> It seems to me that one could build an add-on to any database to support
> this I think?  I was actually wondering how difficult it would be to build
> a 'generic replication api' that leverages the same CouchDB replication
> protocol…  Has anyone endeavored to try anything like this?  It seems like
> it should be straight forward.
>
> In a sense it does feel a lot like BigCouch + MongoDB…
>
>
> >
> > On Tue, Nov 5, 2013 at 3:50 AM, Mark Deibert <ma...@gmail.com>
> wrote:
> >
> >> @Jim: That _is_ interesting. I read a bit of it, will read more later.
> So
> >> far it seems like Mongo and Couch had a baby.
> >>
> >>
> >> On Tue, Nov 5, 2013 at 12:35 AM, Jim Klo <ji...@sri.com> wrote:
> >>
> >>> Some friends passed this on to me - looks interesting. Wonder if anyone
> >>> here has any idea how it compares to CouchDB?
> >>>
> >>> http://rethinkdb.com
> >>>
> >>> Best,
> >>>
> >>> - Jim
> >>>
> >>> Jim Klo
> >>> Senior Software Engineer
> >>> SRI International
> >>> t: @nsomnac
> >>>
> >>
>
>

Re: CouchDB vs RethinkDB

Posted by Jens Alfke <je...@couchbase.com>.
On Nov 5, 2013, at 1:13 PM, Jim Klo <ji...@sri.com> wrote:

> It seems to me that one could build an add-on to any database to support this I think?  

Yes, but you need to add a significant amount of metadata to each document/record/row since you need to track its revision tree[1].
(I am currently building exactly such an add-on so I know whereof I speak :)

> I was actually wondering how difficult it would be to build a 'generic replication api' that leverages the same CouchDB replication protocol…  Has anyone endeavored to try anything like this?  It seems like it should be straight forward.

There are a couple of re-implementations of the CouchDB replication protocol: PouchDB and Couchbase Lite (in both Objective-C and Java implementations).

I have my own documentation of the replication algorithm[2] and there’s another description that’s recently been added to the CouchDB docs.

I don’t know about “straightforward” … it’s not rocket science, especially now that there is actual documentation of the protocol, but it’s a fairly complex engineering task, especially the failure handling.

—Jens

[1] Gory details in the 2003 paper "The Hash History Approach for Reconciling Mutual Inconsistency”: <http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.12.5482&rep=rep1&type=pdf>. I don’t know for sure, but I suspect this paper was an influence on the design of CouchDB since what it describes is very similar to the way CouchDB replication works.
[2] https://github.com/couchbase/couchbase-lite-ios/wiki/Replication-Algorithm


Re: CouchDB vs RethinkDB

Posted by "Florian Westreicher Bakk.techn." <st...@meredrica.org>.
You will need the replicator db when something crashes, I should have mentioned that. 

Jens Alfke <je...@couchbase.com> wrote:
>
>On Nov 5, 2013, at 1:42 PM, Florian Westreicher Bakk.techn.
><st...@meredrica.org> wrote:
>
>> Couch can and will handle net splits. If you use the replicator db.
>Conflicts will be detected and a winning version is determistically
>chosen on each node, resulting in the same doc everywhere. 
>
>This is true, but it doesn’t matter whether or not you use the
>replicator db. Any replication has these properties.
>
>CouchDB replication supports a fully P2P mesh model with no masters, no
>permanent connections, and arbitrary connection topology. New revisions
>will propagate between the peers until everyone has a copy.
>
>—Jens

-- 
Sent from Kaiten Mail. Please excuse my brevity.

Re: CouchDB vs RethinkDB

Posted by Jens Alfke <je...@couchbase.com>.
On Nov 5, 2013, at 1:42 PM, Florian Westreicher Bakk.techn. <st...@meredrica.org> wrote:

> Couch can and will handle net splits. If you use the replicator db. Conflicts will be detected and a winning version is determistically chosen on each node, resulting in the same doc everywhere. 

This is true, but it doesn’t matter whether or not you use the replicator db. Any replication has these properties.

CouchDB replication supports a fully P2P mesh model with no masters, no permanent connections, and arbitrary connection topology. New revisions will propagate between the peers until everyone has a copy.

—Jens

Re: CouchDB vs RethinkDB

Posted by Alain Mouette <am...@fastmail.fm>.
Em 05-11-2013 19:42, Florian Westreicher Bakk.techn. escreveu:
> Couch can and will handle net splits. If you use the replicator db. Conflicts will be detected and a winning version is determistically chosen on each node, resulting in the same doc everywhere.

Thanks, that is much reasuring. Specialy because, in my particular case, 
I can establish "busines rules" to avoid potencial conflicts. In case of 
a netsplit each side can edit only it's side of the data.

Alain

>
> Alain Mouette <am...@fastmail.fm> wrote:
>> Em 05-11-2013 19:13, Jim Klo escreveu:
>>> On Nov 5, 2013, at 11:08 AM, Ryan Mohr <ry...@kumu.io>
>>>    wrote:
>>>
>>>> Rethink caught my interest a little while back too.  Looks like a
>> well
>>>> designed database and a great collection of tools to support it.
>>>>
>>>> The immediate difference that jumped out at me (and the ultimate
>> reason I
>>>> chose couch over rethink) is that rethink does not and will never
>> support
>>>> master-master replication.  See this thread for some background:
>>>>
>> https://github.com/rethinkdb/rethinkdb/issues/1019#issuecomment-19573253
>>>> Both databases are "distributed" but in different respects.  CouchDB
>> is
>>>> "distributed" in the same way git is "distributed" (eg we're all
>> equals).
>>>> RethinkDB is "distributed" in the scaling sense (sharding /
>> cluster-wide
>>>> queries) but there is always an authoritative master.
>>>>
>>> It seems to me that one could build an add-on to any database to
>> support this I think?  I was actually wondering how difficult it would
>> be to build a 'generic replication api' that leverages the same CouchDB
>> replication protocol…  Has anyone endeavored to try anything like this?
>> It seems like it should be straight forward.
>>> In a sense it does feel a lot like BigCouch + MongoDB…
>> Yes, there is something like that for LevelDB:
>> https://npmjs.org/package/level-replicate
>> The reason that it uses LevelDB is because it is more basic, usualy the
>>
>> backgound storage and it is therefore very fast
>>
>> But I am not sure if it can recover from a Net-split which is something
>>
>> that I am not even sure if CouchDB can do stand-alone
>>
>> Alain


Re: CouchDB vs RethinkDB

Posted by "Florian Westreicher Bakk.techn." <st...@meredrica.org>.
Couch can and will handle net splits. If you use the replicator db. Conflicts will be detected and a winning version is determistically chosen on each node, resulting in the same doc everywhere. 

Alain Mouette <am...@fastmail.fm> wrote:
>Em 05-11-2013 19:13, Jim Klo escreveu:
>> On Nov 5, 2013, at 11:08 AM, Ryan Mohr <ry...@kumu.io>
>>   wrote:
>>
>>> Rethink caught my interest a little while back too.  Looks like a
>well
>>> designed database and a great collection of tools to support it.
>>>
>>> The immediate difference that jumped out at me (and the ultimate
>reason I
>>> chose couch over rethink) is that rethink does not and will never
>support
>>> master-master replication.  See this thread for some background:
>>>
>https://github.com/rethinkdb/rethinkdb/issues/1019#issuecomment-19573253
>>>
>>> Both databases are "distributed" but in different respects.  CouchDB
>is
>>> "distributed" in the same way git is "distributed" (eg we're all
>equals).
>>> RethinkDB is "distributed" in the scaling sense (sharding /
>cluster-wide
>>> queries) but there is always an authoritative master.
>>>
>> It seems to me that one could build an add-on to any database to
>support this I think?  I was actually wondering how difficult it would
>be to build a 'generic replication api' that leverages the same CouchDB
>replication protocol…  Has anyone endeavored to try anything like this?
> It seems like it should be straight forward.
>>
>> In a sense it does feel a lot like BigCouch + MongoDB…
>
>Yes, there is something like that for LevelDB: 
>https://npmjs.org/package/level-replicate
>The reason that it uses LevelDB is because it is more basic, usualy the
>
>backgound storage and it is therefore very fast
>
>But I am not sure if it can recover from a Net-split which is something
>
>that I am not even sure if CouchDB can do stand-alone
>
>Alain

-- 
Sent from Kaiten Mail. Please excuse my brevity.

Re: CouchDB vs RethinkDB

Posted by Alain Mouette <am...@fastmail.fm>.
Em 05-11-2013 19:13, Jim Klo escreveu:
> On Nov 5, 2013, at 11:08 AM, Ryan Mohr <ry...@kumu.io>
>   wrote:
>
>> Rethink caught my interest a little while back too.  Looks like a well
>> designed database and a great collection of tools to support it.
>>
>> The immediate difference that jumped out at me (and the ultimate reason I
>> chose couch over rethink) is that rethink does not and will never support
>> master-master replication.  See this thread for some background:
>> https://github.com/rethinkdb/rethinkdb/issues/1019#issuecomment-19573253
>>
>> Both databases are "distributed" but in different respects.  CouchDB is
>> "distributed" in the same way git is "distributed" (eg we're all equals).
>> RethinkDB is "distributed" in the scaling sense (sharding / cluster-wide
>> queries) but there is always an authoritative master.
>>
> It seems to me that one could build an add-on to any database to support this I think?  I was actually wondering how difficult it would be to build a 'generic replication api' that leverages the same CouchDB replication protocol…  Has anyone endeavored to try anything like this?  It seems like it should be straight forward.
>
> In a sense it does feel a lot like BigCouch + MongoDB…

Yes, there is something like that for LevelDB: 
https://npmjs.org/package/level-replicate
The reason that it uses LevelDB is because it is more basic, usualy the 
backgound storage and it is therefore very fast

But I am not sure if it can recover from a Net-split which is something 
that I am not even sure if CouchDB can do stand-alone

Alain



Re: CouchDB vs RethinkDB

Posted by Jim Klo <ji...@sri.com>.
On Nov 5, 2013, at 11:08 AM, Ryan Mohr <ry...@kumu.io>
 wrote:

> Rethink caught my interest a little while back too.  Looks like a well
> designed database and a great collection of tools to support it.
> 
> The immediate difference that jumped out at me (and the ultimate reason I
> chose couch over rethink) is that rethink does not and will never support
> master-master replication.  See this thread for some background:
> https://github.com/rethinkdb/rethinkdb/issues/1019#issuecomment-19573253
> 
> Both databases are "distributed" but in different respects.  CouchDB is
> "distributed" in the same way git is "distributed" (eg we're all equals).
> RethinkDB is "distributed" in the scaling sense (sharding / cluster-wide
> queries) but there is always an authoritative master.
> 

It seems to me that one could build an add-on to any database to support this I think?  I was actually wondering how difficult it would be to build a 'generic replication api' that leverages the same CouchDB replication protocol…  Has anyone endeavored to try anything like this?  It seems like it should be straight forward.

In a sense it does feel a lot like BigCouch + MongoDB… 


> 
> On Tue, Nov 5, 2013 at 3:50 AM, Mark Deibert <ma...@gmail.com> wrote:
> 
>> @Jim: That _is_ interesting. I read a bit of it, will read more later. So
>> far it seems like Mongo and Couch had a baby.
>> 
>> 
>> On Tue, Nov 5, 2013 at 12:35 AM, Jim Klo <ji...@sri.com> wrote:
>> 
>>> Some friends passed this on to me - looks interesting. Wonder if anyone
>>> here has any idea how it compares to CouchDB?
>>> 
>>> http://rethinkdb.com
>>> 
>>> Best,
>>> 
>>> - Jim
>>> 
>>> Jim Klo
>>> Senior Software Engineer
>>> SRI International
>>> t: @nsomnac
>>> 
>> 


Re: CouchDB vs RethinkDB

Posted by Ryan Mohr <ry...@kumu.io>.
Rethink caught my interest a little while back too.  Looks like a well
designed database and a great collection of tools to support it.

The immediate difference that jumped out at me (and the ultimate reason I
chose couch over rethink) is that rethink does not and will never support
master-master replication.  See this thread for some background:
https://github.com/rethinkdb/rethinkdb/issues/1019#issuecomment-19573253

Both databases are "distributed" but in different respects.  CouchDB is
"distributed" in the same way git is "distributed" (eg we're all equals).
RethinkDB is "distributed" in the scaling sense (sharding / cluster-wide
queries) but there is always an authoritative master.


On Tue, Nov 5, 2013 at 3:50 AM, Mark Deibert <ma...@gmail.com> wrote:

> @Jim: That _is_ interesting. I read a bit of it, will read more later. So
> far it seems like Mongo and Couch had a baby.
>
>
> On Tue, Nov 5, 2013 at 12:35 AM, Jim Klo <ji...@sri.com> wrote:
>
> > Some friends passed this on to me - looks interesting. Wonder if anyone
> > here has any idea how it compares to CouchDB?
> >
> > http://rethinkdb.com
> >
> > Best,
> >
> > - Jim
> >
> > Jim Klo
> > Senior Software Engineer
> > SRI International
> > t: @nsomnac
> >
>

Re: CouchDB vs RethinkDB

Posted by Mark Deibert <ma...@gmail.com>.
@Jim: That _is_ interesting. I read a bit of it, will read more later. So
far it seems like Mongo and Couch had a baby.


On Tue, Nov 5, 2013 at 12:35 AM, Jim Klo <ji...@sri.com> wrote:

> Some friends passed this on to me - looks interesting. Wonder if anyone
> here has any idea how it compares to CouchDB?
>
> http://rethinkdb.com
>
> Best,
>
> - Jim
>
> Jim Klo
> Senior Software Engineer
> SRI International
> t: @nsomnac
>