Skip to main content

Command Palette

Search for a command to run...

πŸ”„ Rolling Deployment Explained Like You're 5

Published
β€’2 min read
S

Building AI systems and writing about how they actually work. Master of AI @ University of Technology Sydney. Previously B.Tech CS with focus on IoT. I believe the best way to learn is to explain. That's why I'm documenting tech concepts with simple analogies (@sreekarreddy.com). AWS Certified β€’ Azure AI Certified β€’ Neo4j Professional β€’ Google Data Analytics When not coding: exploring Sydney, working on side projects, and teaching tech to anyone who'll listen.

Gradual updates one server at a time

Day 101 of 149

πŸ‘‰ Full deep-dive with code examples


The Rotating Restaurant Staff Analogy

Imagine replacing all restaurant staff:

One way: Close the restaurant, swap a lot at once, reopen

Better way: Replace one waiter at a time while restaurant stays open

  • One leaves, one new person starts
  • Customers barely notice
  • If a new person struggles, it usually affects a small area

Rolling Deployment updates servers gradually!


The Problem It Solves

Deploying new code can be risky:

  • All at once: Problems can hit many users at once
  • Downtime: Users may not be able to use the app during updates
  • Rollback is hard: If something's wrong, more of the system is affected

How It Works

Instead of updating everything at once:

Several servers running the current version

Step: Replace one server with the new version
Step: Wait for it to become healthy and take traffic
Step: Repeat until everything is on the new version
  • Some servers stay running
  • Users keep using the app
  • If the new version has problems, pause and roll back

Benefits

  • Reduced downtime β†’ Some servers stay available
  • Gradual risk β†’ Problems caught early
  • Simpler rollback β†’ Pause the rollout and keep most servers on the old version
  • Automatic β†’ Most platforms do this for you

Considerations

  • Version compatibility β†’ Old and new versions run together briefly
  • Database changes β†’ Often need to work with both versions
  • Can take longer than all-at-once β†’ Takes time to complete

Compared To Others

  • Blue-Green: All at once to separate environment
  • Canary: Tiny % first, then rest
  • Rolling: Gradual, server by server

In One Sentence

Rolling Deployment updates servers one at a time so your application stays available throughout the entire update process.


πŸ”— Enjoying these? Follow for daily ELI5 explanations!

Making complex tech concepts simple, one day at a time.

More from this blog

esreekarreddy

132 posts

πŸ”„ Rolling Deployment Explained Like You're 5