Hey Fred, Yes you're right, not just node but just about languages/platforms that have some form of transaction management is single source oriented. 2PC continues to be a beast and the use case becomes even more visited with needing to coordinate between different data stores. At StrongLoop we have a "modern" ODM (datasource juggler) that abstracts data into models (value objects) across multiple data sources (rdbms, nosql, etc...) and we have transaction management as a feature for consideration on our roadmap. Would you have some time to connect and chat about your use case?
-a- *StrongLoop <http://strongloop.com/>** makes it easy to **develop APIs <http://strongloop.com/mobile-application-development/loopback/>** in Node and gain **valuable insights <http://strongloop.com/node-js-performance/strongops/>** into your apps. Getting started is easy via an **npm install <http://strongloop.com/get-started/>**.* On Sunday, February 23, 2014 8:08:23 PM UTC-8, fred wang wrote: > > Aria, You might be right, transaction manager to support XA might not > something node.js provide but I would like to know where to support in > Javascript stack. > > Let me be more specific, because we have to use different data sources(you > can image one is MySQL, the other one is PG) when we want to use Nodes.js , > so distributed transaction support is important and single Database driver > is not sufficient. I saw Serialize support transaction but my understanding > is that it only support one data source. I am looking for something in > Javascript which is some container supporting JTA in Java. > > Thanks anyway for the help. Any others have any insights to share? > > Fred > > > On Mon, Feb 24, 2014 at 12:25 AM, Aria Stewart <[email protected]<javascript:> > > wrote: > >> On Sun, Feb 23, 2014 at 08:06:08AM -0800, >> [email protected]<javascript:>wrote: >> > All, >> > >> > I wonder whether node.js support two phase commit(we have to split >> data >> > in different Database due to the data size or not). I saw Sequelize has >> > supported transaction. If not, is there a plan when it will be >> supported? >> >> That's not exactly something node provides itself: That's a protocol >> between >> you and the databases. >> >> MySQL supports this with its XA Transactions, purely within the MySQL >> command >> language itself; other databases vary. >> >> I don't know of many (any, but I've not looked hard) layers on top of >> databases >> that support it -- but you can usually make it work if you can get access >> to >> the low-level database handles for those fancier layers. >> >> Aria >> > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
