Technical reasoning, written down.

Notes on the trade-offs, failure modes, and implementation details that sit behind the project record.

9 min read

How I Stopped Losing Pennies: Modeling Multi-Jurisdiction Tax Logic with Hexagonal Architecture

The story behind JurisLogic - a headless tax and commission microservice that handles US sales-tax stacking, EU VAT, UK three-tier VAT, and Canadian GST/HST without a single floating-point rounding error. Here's what I learned about domain-driven design, the Strategy pattern, and why decimal.js saved my sanity.

Architecture, NestJS, TypeScript, Domain-Driven Design, Microservices

Read article