Backend architecture for sensitive data
architecture
Architecture decisions with their cost stated.
6 articles
-
AI Log AI Log · November 2026: migrations you didn't choose and cheaper caching This month nearly everything that matters is a forced migration: Gemini 2.5 rerouted to another model, an Anthropic API version that drops temperature, and OpenAI retiring half its fleet. Plus cheaper caching.
-
Engineering when an agent writes the code Spec-First With Coding Agents: Making Invariants Machine-Checkable An agent's productivity is not limited by the model: it is limited by how precisely the invariant is expressed. I know because I keep count of my own failures: four got past me writing the six articles before this one, and three got past for the same reason.
-
Traceability and auditability An Append-Only Log Is Not a Log: It Is Your Only Version of Events When the data is sensitive, who saw what and when carries the same weight as the data itself. And a table with an updated_at column is not an audit trail: it is a story that can be rewritten. I checked, and it rewrites.
-
Applied encryption Searching Encrypted Data Without Decrypting It: Blind Indexes in Practice Disk encryption protects against almost nothing that matters, and field-level encryption breaks search. A blind index is the middle ground, and it carries three costs nobody mentions until you hit them.
-
Boundaries and verification Hexagonal Architecture in FastAPI: Putting Rules Where They Can Be Checked A FastAPI endpoint with two hundred lines of SQL and logic tangled together is easy to write and miserable to verify. Three folders, one feature end to end, and the test split that lets a business rule be checked without booting the app or a database.
-
Multi-tenant isolation · Isolation 1/3 Tenant Isolation Is a Structural Property, Not a WHERE Clause Most multi-tenant SaaS treats customer isolation as a filter someone has to remember to write. It holds until someone forgets, and the test suite will not catch it.