Pattern 1: Migration Using Code Modification
This migration process is designed for critical online environments, allowing secure roll-back. The application performs the synchronization between both databases.
- Using an export or backup of the current DB and LX-LD
- Migrate application: 99% of the SQL is compatible. For incompatibilities:
- Alternative SQL will be proposed.
- LeanXcale will be extended to support the functions used.
- Migrate Stored Procedure (e.g., PL/SQL): The procedures are proprietary to the current DB (e.g. Oracle PL/SQL). It will translate to an equivalent java process.
- Double writing: Modify the application to write to both databases.
- Append-only: Append-only or data with an updating timestamp is migrated. They can be read from backups to avoid overload problems in the production database or using an ETL. LX-LD or ETL (e.g. AWS Glue, Datafactory or Airbyte)
- Last Day: Last synchronization of the last period (typically the last day) and data without an updating timestamp. It can be performed during an idle window. LX-LD or ETL (e.g. AWS Glue, Datafactory or Airbyte)
- Original Database as Reading Master: Operate in parallel with the original database, using LeanXcale as the master.
- LeanXcale as Master Reader: Parallel with LeanXcale as Reading Master
- Original Database deactivation: LeanXcale remains as the only engine
- Application optimization to take advantage of LeanXcale capabilities (parallelization/multithreading).