From PHP to Python after eighteen years
How we rewrote an eighteen-year-old service with 800 thousand accounts from Laravel 4.2 to Django and switched production over with a single 40-minute maintenance notice, without logging anyone out. What we did beforehand, what went wrong on switchover day and what the first 48 hours turned up.
Two parts of one story. The first is about nine weeks of preparation: what we checked before anyone saw the new application, and why most of the time went not into writing code. The second is about the switchover day and the two days after it: a plan that changed three times, an hour-by-hour table and a list of bugs, one of them four years old.
This was a client project, so the material is anonymised: no name of the service and no details it could be recognised by.
Migrating an eighteen-year-old service from PHP to Python, part 1: nine weeks before day zero
An eighteen-year-old PHP service, 800 thousand accounts, a framework unsupported for years and a database the cloud provider was about to force-upgrade. We rewrote it in Django and switched production over. Users saw a 40-minute maintenance notice and nobody was logged out. This part is about what we did in the nine weeks before, and why most of that work was not writing code.
PHP to Python migration on live production: switchover day and the first 48 hours
A switchover plan that changed three times in the last two days, 40 minutes of maintenance notice and two days of fixes after moving an eighteen-year-old service from PHP to Python, from Laravel 4.2 to Django. Most of the bugs were a difference between test data and production, or between the code and the server configuration, and four we inherited from the old application.