neumino / thinky

JavaScript ORM for RethinkDB
http://justonepixel.com/thinky/
Other
1.12k stars 128 forks source link

Distributed transactions at application level #529

Open xfg opened 8 years ago

xfg commented 8 years ago

Thinky is awesome ODM for the RethinkDB and would be great see within it the distributed transactions. Algorithm for the distributed transactions can be found here. This algorithm also is used within the google.

Also author created the visualization of step-by-step of distributed transactions which may help in the implementation of this algorithm.

What do you think about this?

jaladankisuresh commented 7 years ago

We had a similar requirement to implement transactional support in ReThinkDB, as we wanted to have atomic operations extending across MySQL and ReThinkDB. We had come-up with this micro library thinktrans, however it is still in its alpha stage

I believe, ORM like Thinky is a better place for such a wrapper for databases that don't support transactions. Would it be easy?