Skip to content

Appendix · When to Upgrade Your Architecture: Quantified Trigger Signals ​

As Chapter 08 emphasized: never upgrade your architecture because it "feels old or ugly" or because "big tech companies use X." Upgrade only when a quality attribute you genuinely care about is capped by a real, measured bottleneck. This cheat sheet turns that principle into observable, quantified trigger signals — only when you see these signals is it time to act.

⚠️ Important: the numbers below are rules-of-thumb orders of magnitude, not iron laws. Real thresholds depend on your hardware, data shape, and business tolerance. Treat them as "time to pay attention" alerts rather than automatic mandates. The real justification is always: a quality attribute that matters to the business is hitting a measured bottleneck.


Reads / Writes / Storage: Data-Tier Signals ​

Observed Signal (Rule-of-Thumb Range)Likely BottleneckCommon Remedy (see 05)
Primary DB CPU sustained > 70%, read queries queuingRead capacity saturatedAdd read replicas + caching
Cache hit rate drops < 90%, heavy origin fallback trafficInsufficient cache coverage or poor eviction/TTL policyTune cache granularity, TTL, and pre-warming; guard against penetration/breakdown/avalanche
Single table reaches tens of millions to 100M+ rows, or single DB exceeds hundreds of GBSingle instance outgrowing memory/storage; writes and schema changes slowing downConsider partitioning / sharding (choose the shard key carefully) or archiving cold data
Write QPS nearing single-node limit; primary DB becomes the write bottleneckWrite capacity saturated (read replicas cannot help)Sharding, write buffering/batching, or splitting out a dedicated write store
The same dataset is tortured by conflicting query shapes (OLTP transactions + full-text search + analytical aggregations)One storage engine forced to do jobs it wasn't built forSplit read models by access shape (polyglot persistence / CQRS)

Latency / Performance: Experience-Tier Signals ​

Observed SignalLikely BottleneckCommon Remedy
P99 latency consistently breaches SLO (while P50 looks fine)Tail latency — a slow code path, lock contention, GC pause, or fan-out stragglerTrace the slowest hop and optimize that path specifically; don't waste effort tuning P50
A heavy operation forces users to wait > several seconds synchronouslySynchronous request path doing work that should be asynchronousMove to async processing + message queue peak shaving (04)
Traffic shows predictable sharp spikes (ticket drops, flash sales, commute hours)Provisioning for peak is too expensive; provisioning for average gets crushedQueue-based peak shaving + autoscaling + (in extreme cases) virtual waiting rooms

Availability / Reliability: Stability Signals ​

Observed SignalLikely BottleneckCommon Remedy
Business requires stepping up availability (99% → 99.9% → 99.99%)Single points of failure or lack of redundancy cannot sustain another nineEliminate SPOFs, add redundancy, isolate fault domains, multi-AZ / multi-region
One component failing takes down the whole system (SPOF)Unprotected single point of failureRedundancy + automated failover + graceful degradation
A single fault cascades widely and recovery takes too longNo blast-radius isolationBulkheads, circuit breakers, timeouts, rate limiting, and load shedding

Organization / Engineering Velocity: The Most Overlooked Signals ​

Observed SignalLikely BottleneckCommon Remedy (Often an Org Problem)
Changing one place breaks three others, releases slow to a crawl, nobody dares touch core codeRotting module boundaries / tight couplingClean up module boundaries inside a modular monolith first; you do not necessarily need microservices
Multiple teams block each other in one codebase, release trains queue upPeople scalability has hit its ceilingThis is the real trigger for microservices — but align with team boundaries first (Conway's Law, see 08)
New hires take weeks just to get oriented, simple features touch dozens of filesPoor maintainability / missing architectural contextRefactor boundaries and document ADRs instead of piling on more features

How to Use This Table ​

  1. Measure first, judge second. Talking about architectural upgrades without observability data (QPS, P99, cache hit rate, CPU, storage growth) is guesswork. Instrument the metrics first.
  2. Solve one bottleneck at a time. Every architectural upgrade carries real cost and risk; it must buy relief for a quality attribute that is currently bottlenecked — never rewrite the whole stack at once.
  3. Write an ADR for every upgrade: record which quantified signal triggered it, what you upgraded to, and what new complexity you accepted.
  4. If no signal has fired, don't touch it. Upgrading without a trigger signal is almost always over-engineering or resume-driven development — remember Chapter 09: for individuals and small teams, the default architectural taste is restraint.

In one line: an architectural upgrade is an evidence-backed decision triggered by a real signal — not a periodic refactoring ritual, and not an impulse to chase new tech.

💬 Comments