Import data from SQL to MongoDB. All or nothing

I have the following architecture: enter image description here

I am importing data from an SQL database into mongodb. I am using an importer to transfer data to mongodb, which provides data to a website through an API.

Importing can take a couple of minutes, and if it fails, I would like to be able to roll back (it would be nice to be able to rollback several imported goods) or refuse a database / collections of unsettled rows (if you think of it as SQL transactions).

, . , . temp db, . , -, . - db-, ( ).

concurrency?

: : cron, , . , , SQL-db. SQL-db .

, URL- SQL db.

, .

+4
1

, , , - , , , . Node.js , - , //etc. , / . Node.js, , (, /).

, , :)

/, :

, :)

0

Source: https://habr.com/ru/post/1620781/


All Articles