@rick.theengineer: How do you ship a new version without taking your app offline? Blue-green deployment. Instead of one production environment, you run two. Blue is live — every customer is on it. Green is identical, sitting there with zero traffic. You deploy version 2 to green. Not on top of the thing your customers are using. Then you test it privately: can users log in, can they add to cart, does the checkout page reach the payment API, do the health checks pass? If something breaks — nobody notices. Your customers are still on blue. When green looks good, you don't deploy again. You move the traffic. The load balancer stops sending users to blue and starts sending them to green. Almost instantly, green is production. Five minutes later your monitoring shows checkout errors jumping from 0.4% to 18%? You don't rebuild version 1. You don't redeploy it. Blue is still sitting there with the last working release — so you flip the switch back. That's the real power here: rollback is a routing change, not a deployment. The part nobody warns you about is the database. Both environments share it. Rename a column in v2 and blue will crash the second you roll back — because it still expects the old name. That's why schema changes have to be backward compatible: add the new column, ship code that reads both, migrate the data, drop the old one later. Expand and contract. Two environments. One live, one ready. One switch between them. Save this for your next release 🔁 #devops #systemdesign #softwareengineering #backend #coding

RickTheEngineer
RickTheEngineer
Open In TikTok:
Region: GB
Tuesday 29 September 2026 17:56:50 GMT
34721
2536
26
161

Music

Download

Comments

scyre68
Scyre :
A glorified staging environment 😄
2026-09-29 18:54:24
9
jhknoaka
JHK No AKA :
Can you use a load balancer on the same server, or it must be on a different one?
2026-09-29 19:28:19
2
z.daniel91
DerNamenloseDaniel :
idk sounds complicated, better to break everything but have a single version, or if you really want, then have a second database, where you just dump old db into, and write to both during switch phase, could save you headaches
2026-09-29 21:42:16
0
okoca21
okoca :
Hey Rick, I think that might be a bit problematic because you'd need to separate the database and its structure—not just the runtime code. If you don't, it runs against the actual database, making schema changes impossible. If you *do* separate them, then once development is finished, you'd have to either migrate the new DB schema to runtime or migrate the runtime data to the new structure—which is a major headache. That’s why I wouldn't do it that way.
2026-09-29 21:41:22
0
lostmajortom
lostmajortom :
all that for 2 users
2026-09-29 21:17:16
0
dubdubtv0
Dubdub :
Is it dev, staging prod?
2026-09-29 18:04:22
19
graygreyg
rm -rf /* :
we do this for our VDI platform. we don't patch the systems. we rebuild fresh every month and drain users across. blue to green then green to blue every other month.
2026-09-29 21:34:28
0
drsserunjogiemma
Dr. Sserunjogi Emma :
I use this exact same approach to keep my deployments fast and no downtime. Biggest challenge is breaking user processes as they're running during flipping from blue to green. The solution to this is that everything is queued and this can always be recovered even can survive server restarts. Then also I added a New version is out popup button in browser, so user clicks it and they flip themselves at will to green. This means they know when all processes are done, have saved their work and now can update without anything breaking for them. Also the easiest approach is having everything dockerized means blue/green is easy and compatible since docker packs everything upfront.
2026-09-29 18:47:01
5
daviricca
daviricca :
Thats calles development branch
2026-09-29 19:20:51
3
hubhusiana
hubhusiana :
Without ever hearing of this , I have done this before 🤣🤣🤣
2026-09-29 19:20:47
2
douilledepouleti646
Dinesh :
how do you deal with db upgrade ?
2026-09-29 19:16:46
1
andersonthomas.a
T. A. Anderson :
Staging ,prod1&prod2😏
2026-09-29 19:13:15
2
ismailbhyat
Ismail Areff :
Is green pointing to its own database?
2026-09-29 21:33:51
0
bytebazaartechlabs
Bytebazaar :
Prepare an indepth dive to convex backend
2026-09-29 21:36:41
0
marb4brahm51
Marb Brahm :
№1
2026-09-29 18:05:23
0
nikopol_b
NikopoL :
[Genial]
2026-09-29 20:11:48
0
gedygrace_27
grace27 :
🥰🥰🥰
2026-09-29 20:37:00
0
To see more videos from user @rick.theengineer, please go to the Tikwm homepage.

Other Videos


About