Practice this topic in a realistic system design interview
Suppose you have a users table with a column called name, and your team decides to rename it to full_name.
In development, this is simple. You rename the column, update the code, and restart the application.
In production, it's not that simple. Imagine your application runs on twenty servers, and you deploy the new code gradually, one server at a time. All twenty servers share the same database.
name column no longer exists.full_name column that doesn't exist yet.The problem is that the twenty servers don't switch to the new version at once. During the rollout, some run the old code and some run the new code, and both versions have to work with the same database.
So the real challenge isn't changing the schema. It's changing it safely, without breaking either version of the application while the deployment is in progress. This chapter shows how.