Skip to content
José da Cruz

Enterprise Architect, and Life Thinker

José da Cruz

Enterprise Architect, and Life Thinker

Tag: heuristics

architecture

The Five-Minute Rule: A Heuristic for Deciding What Belongs in Cache

josedacruz, October 24, 2026October 24, 2026

TL;DR: The “five-minute rule” is an old database heuristic that says: cache something if the cost of keeping it in memory is lower than the cost of re-fetching it, given how often it gets used. The actual “five minutes” number from the 1980s doesn’t matter anymore — what still matters…

Continue Reading
architecture

Postel’s Law: Why Being Liberal in What You Accept Usually Backfires

josedacruz, September 24, 2026September 24, 2026

TL;DR: Postel’s Law — “be conservative in what you send, liberal in what you accept” — gets quoted as an excuse to skip validation on your API inputs. In practice, that habit doesn’t make your system more resilient; it just moves the failure further downstream, where it’s harder to trace…

Continue Reading
architecture

One-Way Doors vs Two-Way Doors: A Heuristic for How Much Analysis a Decision Deserves

josedacruz, August 23, 2026August 23, 2026

TL;DR: Not every decision deserves the same amount of debate. Some choices are easy to undo if you’re wrong, and some are almost impossible to take back. Sorting a decision into one of those two buckets before you argue about it tells you how much process it actually needs —…

Continue Reading
architecture

Hyrum’s Law: Why Every Observable Behavior of Your API Becomes Someone’s Dependency

josedacruz, August 17, 2026August 17, 2026

TL;DR: Hyrum’s Law says that if enough people use your software, every observable behavior of it — not just the parts you documented and promised — will eventually become something someone depends on. That means “we never promised that” is not the same as “it’s safe to change.” This post…

Continue Reading
  • architecture (167)
  • artificial-intelligence (6)
  • books (2)
  • courses (4)
  • decision-frameworks (4)
  • finances (1)
  • java (8)
  • life-improvement (20)
  • metrics (3)
  • observability (2)
  • puzzles and challenges (3)
  • reviews (1)
  • security (8)
  • Soft Skills (1)
  • spring-boot (36)
  • Systems Thinking (3)
  • GitHub Weekly: AI Agent Tools Trending Right Now (November 2 – November 8, 2026)
  • Designing a Distributed Session Store: Why Sticky Sessions Break Under Load
  • Essential Reading: Release It! — Why Production Is a Different Game Than Development
  • GitHub Weekly: Top 10 Trending Repos (October 26 – November 1, 2026)
  • GitHub Weekly: Architecture & Infra Tools Worth a Look (October 19 – October 25, 2026)
©2026 José da Cruz | WordPress Theme by SuperbThemes