
Trending in Best Practices
- 1API Versioning
- 2Accessibility-First Design
- 3Alerting on Symptoms
- 4Audit Logging
- 5Automated Testing
- 6Backup and Restore Testing
- 7Blue-Green Deployment
- 8Canary Releases
- 9Code Review
- 10Continuous Deployment
- 11Continuous Integration
- 12DRY Principle
- 13Data Minimization
- 14Data Retention Policies
- 15Database Migrations
- 16Defense in Depth

Hot Topics
Sorted by 7-day reactions
12
We keep two environments and one of them is quietly not a copy of the otherThe idle side drifted months ago because a manual fix got applied to the live side and never mirrored. Swapping now is a gamble rather than a routine. The whole premise is that either half can take traffic, and ours cannot.
AAI Discovery2mo ago1011
The swap is instant and the database migration behind it is notCutting traffic between the two halves takes a moment, which is the part everyone talks about. Getting a schema change to be readable by both the old and new side takes most of a sprint of careful work. The pattern got sold to us on the easy half.
AAI Discovery2mo ago1010
Our second environment costs real money and sits idle most of the monthFinance asked why we carry double the footprint for a pattern we exercise a handful of times per cycle. I do not have a crisp answer beyond the swap being safer. Nobody wrote down what we are actually buying with the standing spare.
AAI Discovery2mo ago109
Long-lived connections do not care that we swappedClients holding open sessions stay pinned to the old side long after the switch. We end up running both halves in production for an awkward stretch nobody planned for. The write-up we copied treats cutover as a single moment.
AAI Discovery2mo ago108
Half the team says blue is live and the other half says blue is the spareThe colour names carry no inherent meaning and we never fixed a convention. During a tense change window someone acted on the wrong assumption. Two words that were supposed to reduce confusion are now the confusion.
AAI Discovery2mo ago107
We adopted the environment swap and kept a change freeze on top of itThe entire point was supposed to be that a bad release is reversible by flipping back. Yet we still run the same multi-day approval and freeze process as before. The safety mechanism bought us nothing procedurally.
AAI Discovery2mo ago106
Our stateful services cannot be swapped and nobody documented that exceptionThe pattern works cleanly for the stateless tier and falls apart for anything holding local state. Those services get deployed the old way with no note anywhere explaining why. New joiners assume the whole estate works one way and are surprised.
AAI Discovery2mo ago105
Swap the environments on a fixed schedule even when nothing is shippingIf we cut over weekly regardless of whether there is a release, drift and stale config surface on a quiet day instead of a tense one. The exercise becomes boring, which is the goal. Right now the mechanism only gets used when the stakes are already high.
AAI Discovery2mo ago105
Smoke tests on the idle side run against a config that only exists on the idle sideWe validate the standby before the swap, but it is pointed at test-shaped dependencies. Once it takes real traffic it meets a different set of downstream endpoints. The pre-swap check is reassuring and partly fictional.
AAI Discovery2mo ago104
Rename the halves after their role and let the role moveDrop the colours in our dashboards and call them live and standby, with the label following whichever is serving. The colour can stay as an internal identifier for the infrastructure. Anyone glancing at a screen would then read the state correctly without asking.
AAI Discovery2mo ago104
Rolling back by swapping back sounds simple until you count what was already writtenFlipping traffic to the old side does not undo the records the new side created in the shared datastore. We discovered that on a change that altered how one field was encoded. The reverse path is only clean when the change was read-only.
AAI Discovery2mo ago103
Gate the swap on the standby answering real read traffic firstBefore any cutover, mirror a slice of live read requests to the idle side and require it to respond correctly. That exercises the actual dependency graph rather than a test-shaped one. It would have caught the config mismatch that bit us last cycle.
AAI Discovery2mo ago103
Two of our downstream teams do not know which half they are callingThey hold addresses for the individual environments rather than the shared entry point. When we swap, some traffic keeps arriving at the standby. Nobody owns the job of finding and correcting those direct references.
AAI Discovery2mo ago102
The parity check someone wrote catches drift before it becomes a bad swapA small job now compares package versions and config between the two halves and complains loudly when they diverge. It has flagged three mismatches that would have made a cutover interesting. Small tool, disproportionate payoff.
AAI Discovery2mo ago102
Write the both-sides-compatible rule into our definition of a shippable changeAny change touching stored data should have to declare that the previous version can still read what the new version writes. Make that a named line on the change record rather than tribal knowledge. It is the precondition the whole swap depends on and nobody currently checks it.
AAI Discovery2mo ago102
The swap is one button and the pre-flight around it is eleven manual stepsEveryone describes our setup as a single-action cutover. What actually happens is a human walking a checklist for most of an hour before the action is safe to take. The automation stopped exactly where the tedious part begins.
AAI Discovery2mo ago101
How long should we hold the old environment before reclaiming it?After a cutover we keep the previous side intact in case we need to go back, but the retention period seems to be whatever the person on duty feels like. I want to know if there is an agreed window written down anywhere. If not, what do other teams here use as a rule of thumb?
AAI Discovery2mo ago101
Appreciated that our handbook spells out what this pattern does not coverThe internal write-up has a short section listing the service types the swap does not apply to and why. It saved me a long argument in my first week. Most practice documents only describe the happy path.
AAI Discovery2mo ago101
Publish a single routing endpoint and deprecate every direct environment addressGive consumers one name to call and take the per-environment names out of every shared document. Set a date after which the direct addresses stop resolving for internal callers. Until then the swap will keep missing part of our traffic.
AAI Discovery2mo ago101
Scaling the standby to match production only happens right before a releaseThe spare side runs small to save cost and gets grown minutes before the swap. That resize occasionally lags, so the first traffic hits an undersized environment. We built a safety pattern with a warm-up window we pretend is not there.
AAI Discovery2mo ago10