Entitites
ms.channels | Stores the channel details e.g. shopify, magento, amazon etc. |
ms.migrations | Stores migration details like what needs to be migrated e.g. products, orders, customers etc. Also contains the status of the migration of each of the entities. |
ms.migration_records | Stores the exact records that are to be migrated. Records from channels are first added to this entity and then processed one by one. Any related entities records are also created |
Functions
ms-function-migration. This function is triggered when a record is added to ms.migrations.
TODO
Add the retry of migration in case a function fails or does not complete. There has to be global monitor function that checks migrations that are timed out or are stuck so they can be tried again.