5 ms·
How does Rethinkdb handle replication, multi-master and MVCC? Thath's the main reason to use CouchDB over MongoDB.
by nawitus 13y ago
How does Rethinkdb handle replication, multi-master and MVCC? Thath's the main reason to use CouchDB over MongoDB.
- pspeter3 13y agoHow do CouchDB and RethinkDB compare?
- JulianMorrison 13y agoCouch has a much shorter list of operations. Really only get, put, delete, and whatever you can cook up yourself with mapreduce. Rethink has ad-hoc live queries and joins. I don't think Rethink has a tailable update log in the way Couch does.
- rkalla 13y agoIn addition to what other's posted, CouchDB is one of the few NoSQL solutions that will give you master-master replication. Mongo and Rethink are both single-master/multi-slave solutions. One is not better than the other, just depends what you need. And as someone else mentioned, if you want complexity out of your CouchDB queries, you must write map-reduce functions to provide those "views" for you to query. Rethink you can treat similar to a SQL data store and just execute queries against it.
- clark-kent 13y agoCouchDB has a HTTP REST API, and speaks JSON natively. You can write your own CouchDB client to meet your needs. You can also access your data from any server using http.
- coffeemug 13y agoSlava @ rethink here. RethinkDB supports MVCC out of the box -- you don't have to do anything as a user to get it. (It basically means you can do writes and long reads concurrently without any locking issues). Sharding and replication in Rethink is similar to Mongo's architecturally, but is much easier in practice. You can shard and replica in Rethink in one click -- check out the 1m highlights video (http://rethinkdb.com/videos/what-is-rethinkdb/ http://rethinkdb.com/videos/what-is-rethinkdb/) to see how it works. If you have a little more time, take a look at the 10m screencast for more details -- http://rethinkdb.com/screencast/ http://rethinkdb.com/screencast/.
- willvarfar 13y agoIs that ACID transactions with multiple keys?
- coffeemug 13y agoNo, there is no ACID for multiple keys/documents, only on a single key/document.
- embwbam 13y agoI was talking to a guy from Mongo at a conference and he said that Rethinkdb's sharding is as bad as Mongo's because it can't be done in realtime. Is this true? Do you think he meant that it would just be slow to move to sharding for a big database?
- coffeemug 13y agoIn practice today, Rethink's sharding is very similar to Mongo's sharding. This won't remain the case for long -- you'll soon be able to add and remove shards live if that's a requirement in your application. The architecture's already in place, but there are some loose ends we have to tie up to expose this functionality to users.
- ddorian43 13y agosharding IS NOT similar to mongo, although it's easier, non-primary key sharding + range sharding(which is going away) is missing and i think those are very important in high-performance sharding (think-per user_id sharding etc)