2

I am a beginner in NodeJS world coming from several years working with relational databases in Java / Hibernate.

I would like to use Node for a project, and have spent some time researching about frameworks / ORMs that handle proper database transactions/concurrency such as:

  • Ensure ACID transaction blocks (operations set is completely executed or not executed at all)
  • Deal with concurrency, i.e. leveraging strategies as optimistic / pessimistic locking

I've looked into some promising ORMs like Sequelize and Waterline as the most promising ones.

  • Waterline looks good, but lacks both features mentioned above.
  • Sequelize looks much more comprehensive having proper ACID transaction handling. Support for locking and concurrency is absent.

I would like to ask to NodeJS experts about specific patterns or strategies as well as any modules implementing how to deal with a highly concurrent load at database level, cleanly retry failed transactions or ensure data integrity in a HA system.

David Fernandez
  • 585
  • 1
  • 6
  • 20

0 Answers0