News for hackers. Stuff that matters.
Re:RethinkDB joins the Linux Foundation: What Happens Next by pmalynin on Monday February 06, 2017 @01:09PM (#13582207)
Well a) is provided by Mongo and is literally the reason why Meteor can do exactly what you described: multi-user webapps which update in real-time.
Re:RethinkDB joins the Linux Foundation: What Happens Next by jwr on Monday February 06, 2017 @03:08PM (#13583364)
Sigh. Yes, the Mongo oplog and RethinkDB changefeeds are superficially similar. They are both for feeding changes, just like a paper airplane and a passenger jet are both for flying. And yet there is a world of difference.

Leaving aside reliability and ease of use, let's focus on correctness. RethinkDB lets me query a database, get initial data, and then get all the subsequent changes to that data. Notice there is no race condition there.

You can use this to implement systems where when a user logs in, gets the initial data loaded, and then subsequent changes are sent as they happen. Even if the same data is modified by someone else during this time (e.g. during the initial load), things will be processed correctly.

Comparing this to attaching a processor to a feed of all operations in the database doesn't make a lot of sense, because the oplog doesn't provide the same functionality.

Re:RethinkDB joins the Linux Foundation: What Happens Next by asp2insp on Monday February 06, 2017 @01:29PM (#13582410)
The oplog replication provided by Mongo is a very different mechanism than RethinkDB's change feeds. This is a pretty good overview of the differences: https://www.compose.com/articles/rethinking-changes-how-two-...
Re:RethinkDB joins the Linux Foundation: What Happens Next by bryogenic on Monday February 06, 2017 @01:37PM (#13582513)
Unfortunately b) is critical to some, which Mongo did not fair well on:

https://aphyr.com/posts/284-jepsen-mongodb

Re:RethinkDB joins the Linux Foundation: What Happens Next by hmottestad on Monday February 06, 2017 @01:16PM (#13582264)
I couldn't find any documentation on change feeds for Mongo after a quick google search.

Could you post a link please?

Re:RethinkDB joins the Linux Foundation: What Happens Next by koolba on Monday February 06, 2017 @01:20PM (#13582305)
Re:RethinkDB joins the Linux Foundation: What Happens Next by swsieber on Monday February 06, 2017 @01:27PM (#13582396)
While the oplog does provide some semblance of RethinkDB's changefeed, it's not nearly as powerful. With Rethink, you say you want a query, and rethink will let you know about changes to that query. Mongo just says "hey, here are operations that were done", and leaves the reconstruction to you".

So I guess Mongo+Meteor match up with RethinkDB... sort of.

Re:RethinkDB joins the Linux Foundation: What Happens Next by mglukhovsky on Monday February 06, 2017 @06:17PM (#13585266)
It's also worth noting that changefeeds are highly scalable: you can run tens of thousands of them on a single node, and scale them out linearly from there (even as they're scoped to specific queries.)

Obviously the performance characteristics will be impacted by the volume of changes that arrive to the database, but the architecture to support this is highly parallelized (all the way down to cores on the CPU.)