Posts
A collection of everything I've written so far.
-
External API Calls Inside Transactions — Reproducing Pool Exhaustion and Comparing Simple Split, Saga, and Outbox by Measurement
I reproduced HikariCP pool exhaustion caused by external API calls inside transactions in a Spring + raw JDBC environment, then compared three remedies — Simple Split, Saga, and Outbox — across 60 workers × 9 chaos scenarios. I caught the moment Simple Split breaks consistency as 60 mismatched records, watched Saga's three-tier safety net trigger in sequence, and saw how Outbox's 72ms ACK and 93-second average completion split the same dataset into opposite conclusions depending on which metric you read.
-
Proper Connection Pool Configuration in TypeORM & NestJS
A deep dive into connection pool configuration in TypeORM and mysql2, inspired by Naver D2's Commons DBCP guide. Learn how to calculate required connections using TPS formulas, compare Before/After production code, and understand each configuration option in depth.
-
When equals/hashCode Goes Wrong: A Duplicate Payment Incident Post-Mortem
A deep dive into how forgetting to override hashCode() while implementing equals() caused duplicate payments. Includes Kafka TopicPartition analysis, HashMap internals, and code review checklists.
-
Debugging a Memory Leak in Browser Automation: The Perfect Storm of Three Cleanup Paths
A deep dive into debugging a memory leak in a production system managing 50 concurrent Firefox browsers. The story of how Promise.race and finally blocks created a double-cleanup bug, and the journey to fix it.