PyConES 2022

Django Zero Downtime Migrations
01/10/2022 , Katherine Johnson (Teoría 7)
Idioma: English

Building an application with Django is fairly easy at the beginning because the framework provides stable solutions for many of the issues that every engineer deals with. But when things start to get bigger and complex, we can’t ignore what happens behind the scenes. We often need to “tweak” the standard behavior to comply with our exigencies.

How do we perform changes on a database with Django? We use what is known in the framework as “migrations”. We will see the basics of what they are, how they work and focus on their risks: they can be painful, lock tables and generate failed requests and downtime for the end users.

We will then show the solution we have adopted in TravelPerk to perform migrations in the safest way possible without impacting the availability of our systems. An approach we call “Zero Downtime Migrations”.


Nivel de la propuesta:

Intermediate

Temática:

Web

Ver también : Slides (642,6 KB)

Apasionado de la informática desde chiquitito. Aprendí a programar con recursos gratuitos y libros. Actualmente trabajo en TravelPerk dirigiendo un equipo y programando un poco en Python y Javascript cuando tengo tiempo. :) También he colaborado en múltiples comunidades relacionadas con Python como PyBCN y Python España.

Developer, rider, foodie, addicted to TV shows, craft beer lover.