I Know this question has been asked to death on SO, but I still haven't found anything that I could use. I am using MongoDB and am looking for MySQL's transaction equivalent- basically anything that lets me perform rollbacks in case of an error/failure. I found this which is somewhat close to the transaction system I designed, however, the comments suggest that performing a manual recovery of the system is a bad idea- which I agree too. Not only is it complicated, but it also seems to leave out a lot of corner cases, and a complete and successful recovery is not always guaranteed.
I don't have an application which relies heavily on transactions- we are just starting to integrate the whole concept of transactions to ensure ACID properties of the database in case it fails. MongoDB works perfectly for my Meteor application, however, I still need MySQL's transactions. A friend suggested adding another layer of MySQL underneath MongoDB, and moving everything that's transaction-related to MySQL. This sounds good in theory, however, I haven't found much literature that explains good practices about this topic, and hence seem to have a lot of doubts:
Does the transaction-related data come from MySQL or MongoDB? Do we use MongoDB as a cache and move everything to MySQL? Do we ensure that MongoDB mirrors MySQL periodically?
Any help/comments would be appreciated! Thank you.