Skip to content

dautizi/personal-data-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Data Migrator

Python script to migrate repo from MySql to MongoDB.

Story

Time to migrate towards a Micro Services world!

The first version of danieleautizi.com was based on a single MySql datasource. After a couple of years it has been decided to migrate to MongoDB in 2 steps:

  • adding MongoDB intended to be the second datasource. Basically MongoDB was the first to contact and only in case of failure the app itself switches to the old MySql.
  • MySQL has been shut down after 6 months of prod tests in a small Digital Ocean droplet.

The reason was basically the will to decouple data and consumer through a micro-service architecture:

Repositories

  • MySQL - Source relational database.
  • MongoDB - NoSQL Database as destination.

How to run

python mongodb-migration-tool.py

About

Python script to migrate repo from MySql to MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages