r/Clojure • • 26d ago

Two apps one process

https://andersmurphy.com/2026/11/09/two-apps-one-process.html
29 Upvotes

30 comments sorted by

View all comments

Show parent comment

3

u/Krackor 26d ago

Run N copies of the uberapp and blue green deploy. It depends on your use case but imo actual downtime between deployments would be unacceptable for most things I build for a paycheck. And if an app can't tolerate running concurrently, correctly, with another copy of itself or the prior outgoing version, is it a real app in the first place?

2

u/andersmurphy 26d ago

What things have you built where it was unacceptable?

In my experience most blue green deploys do lead to some level of degradation and/or anomalies. The added complexity often makes the system more fragile as there are more interdependent components.

A warm standby with a manual failover (avoid split brain) has always felt like the more reliable approach to me.

2

u/Krackor 26d ago

Microservices handling activity from public users. If a request chain is inflight I don't want to drop it on the floor by shutting down the outgoing instances until the request chain has had time to complete. I also don't necessarily trust the entire system to have good process durability and retry discipline so it's valuable for downstream services to be as reliable and prompt as possible. 

There are ways to design around these problems with a different architecture but one doesn't always have control over the holistic system design, and the design choices needed to make the "stop the world" deployment strategy work wouldn't necessarily make sense in a large enough system with a large enough team.