Python script to migrate repo from MySql to MongoDB.
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:
python mongodb-migration-tool.py