惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
腾讯CDC
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
量子位
F
Fortinet All Blogs
G
Google Developers Blog
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
D
Docker
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
M
MIT News - Artificial intelligence
博客园 - 【当耐特】

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
⚖️ Case File 1.2: The Irreversibility Trap
Manoj Mishra · 2026-05-07 · via DEV Community
Cover image for ⚖️ Case File 1.2: The Irreversibility Trap

Manoj Mishra

Blueprint Felonies Continued..

The most expensive mistake in architecture isn’t making the wrong decision—it’s making it too early.

In 17+ years of building enterprise systems, I’ve seen developers sprint toward "final" decisions as if they were winning a race. They lock themselves into proprietary databases and rigid vendors before the first line of business logic is even written. This is the Irreversibility Trap.


🛑 The Crime: Rushing Irreversible Decisions

In architecture, the best decision is the one you don't have to make today.

  • The Scenario: A team signs a three-year contract for a specific NoSQL vendor and bakes that proprietary SDK into every layer before defining the data relationships.
  • The Crime: Forcing a "Hard Decision" before you have the data to justify it.
  • The Brutality: Requirements shift to relational queries NoSQL can't handle. The team is now "locked-in" to a system that fights them daily.
  • How to Avoid It: Delay irreversible decisions until the Last Responsible Moment—the point where failing to act causes more harm than the choice itself.
  • Brutal Habit to Adopt: The Pivot-Point Audit. For every choice, ask: "How much work would it take to change this in six months?" If the answer is "a total rewrite," stop and wait.

"Defer the Permanent."


🧱 The Crime: Mixing the "What" with the "How"

Your business logic should be a domain expert, not a DBA or a Cloud Engineer.

  • The Scenario: A developer writes a service where core business rules are buried inside cloud-provider handlers and direct database query syntax.
  • The Crime: Failing to separate the What (Business Rules) from the How (Infrastructure).
  • The Brutality: When moving from AWS to Azure, or Mongo to Postgres, the "Business Logic" is thrown away because it’s physically fused to the infrastructure.

  • How to Avoid It: Treat your database and cloud provider as details. Your core logic should be oblivious to them.

  • Brutal Habit to Adopt: The Dependency Firewall. Use interfaces to ensure that no infrastructure-specific code (like Hibernate annotations or Cloud SDKs) ever leaks into your core business domain.

"Logic is Agnostic."


🚀 The Crime: The Infrastructure Head-Start

Infrastructure is a detail, not the destination.

  • The Scenario: A team spends the first month perfecting a multi-cluster Kubernetes setup for a simple API that hasn't been written yet.
  • The Crime: Building the "Cathedral of Infrastructure" before the "Tent of Logic."
  • The Brutality: The project budget is 40% gone, and not a single user story has been delivered.
  • How to Avoid It: Start with the simplest stack that allows you to deliver value. Scaling is easier once you have something worth scaling.
  • Brutal Habit to Adopt: The MVI Check (Minimum Viable Infrastructure). Force yourself to deploy version 1.0 on the simplest possible stack. If it can run on a single container, start there.

"Value Over Volume."


🛠️ Case File Takeaway: The "Paper-First" Architecture

If you can't explain your system's flow using just boxes and arrows on a sheet of paper, it’s too complex to code.

💡 Professional Tip: Before you touch a cloud console, design the requirements on paper. Map out exactly where the business logic ends and the infrastructure begins. If your design requires a specific vendor's name to make sense, you’ve already fallen into the trap.


📋 Cheat Sheet: Blueprint Felonies

[Irreversibility Trap]
The Crime The Red Flag The Fix Mnemonic Brutal Habit to Adopt
Rushing Decisions "We must pick the DB now." Defer until data exists. Defer the Permanent Pivot-Point Audit
Mixing What/How SQL/Cloud code in Logic. Use Clean Architecture. Logic is Agnostic Dependency Firewall
Infra Head-Start "K8s is ready, logic is TBD." Start with MVI. Value Over Volume MVI Check

Next Part: We move to Part 2: The AI Syndicate, where we tackle the crimes of machine-speed negligence and the "Prompt-and-Pray" epidemic.

What’s the most "irreversible" decision you’ve seen a team regret?

💬 Let’s talk in the comments.