历史数据迁移
- 项目地址:
https://gitee.com/xl-echo/dataMigration
历史迁移解决方案。微服务的架构为基础,使用多种设计模式,如:单利、桥接、工厂、模板、策略等。其中涉及的核心技术有,多线程、过滤器等。致力于解决mysql大表迁移的问题。提供多种迁移模式,如:库到库、库到文件再到库等!
Historical migration solution. Based on the architecture of microservices, multiple design patterns are used, such as simple interest, bridge, factory, template, strategy, etc. The core technologies involved include multithreading, filters, etc. It is committed to solving the problem of MySQL large table migration. Provide multiple migration modes, such as library to library, library to file, and then to library
开发环境
工具 | 版本 | 描述 |
---|---|---|
IDEA | 2019.2 | |
JDK | 1.8 | |
MySQL | 5.7 | 5.7 + |
技术框架
技术 | 描述 | 用途 | 备注 |
---|---|---|---|
SpringBoot | 基础框架 | 构建系统架构 | |
MyBatis | ORM框架 | 构建数据层 | |
JDBC | 构建外部数据源 | 用于配置迁移 | |
Maven | 项目管理 | 项目管理 | |
ExecutorService | 线程池 | 分批执行任务 | |
Bloom Filter | 布隆过滤器 | 校验数据是否一致 |
功能模块
设计模式
- 桥接
- 单例
- 工厂
- 模板
- 策略
迁移逻辑图解
更多推荐