Practice this topic in a realistic system design interview
Most deployments have two goals: keep the service online, and avoid paying for a second full copy of production.
A rolling deployment does both by replacing servers a few at a time. The tricky part is that, for a while, the old and new versions of your application run side by side.
This chapter explains how rolling deployments work, how to control the speed and safety of a rollout, and the problems that come up when two versions of an application run at the same time.