Best practice to insert into multiple DB via API (if insertion in one fails , changes must revert)

Viewed 12

I am trying to insert into multiple dbs(mysql and MONGO) using api made in node.js, my concern is that if insertion in one db fails how do I make sure that the changes in other dbs doesn't occur and if done they should revert back

0 Answers
Related