张张小磊inbuildinpublicdev.hashnode.dev·6d ago · 4 min readFrom Manual Reconciliation to Automation: How I Rebuilt Our Order State MachineWhen payment says "paid", the warehouse says "shipped", and the customer says "refund not received" — who's right? This was the daily reality of running a cross-border daigou platform, and fixing it m00
张张小磊inbuildinpublicdev.hashnode.dev·May 27 · 3 min readSolving Duplicate Payment Issues in My E-commerce SystemLast Wednesday at 2 AM, my phone wouldn't stop buzzing. A customer in the group chat sent a string of question marks along with a screenshot of a blank payment page. I rubbed my eyes, logged into the 00
张张小磊inbuildinpublicdev.hashnode.dev·May 27 · 3 min readHow Unreleased Redis Connections Caused 2 Hours of API DowntimevDuring a recent traffic spike, our API experienced severe degradation: response latency jumped from 200ms to over 15 seconds, and the error rate exceeded 40%. Investigation revealed that incoming requ00
张张小磊inbuildinpublicdev.hashnode.dev·May 27 · 3 min readI Deleted the Production Database, and Then...On a Friday afternoon, I was getting ready to leave work when a colleague messaged in the group: "The test environment database crashed. Can you take a look?" I SSH'd into the server, saw garbled tabl00