Tales from the Trenches
summary
An IoT backend lacks logging and monitoring, so HTTP logs plus Log Parser and App Services’ Application Insights reveal a power‑law workload where 3.5M requests generate ~37M downstream calls and update‑location dominates (95–98% of work). Analysis shows chatty code calling table storage repeatedly, producing 88% table storage failures and sync IO in constructors that exhaust connection pools; one initialization pattern costs about $120,000/month. Fixes: enable APM, profile slow traces, make async startup, eliminate redundant calls, optimize the hot path and add backoff/load‑shedding.
AI-written summary · about
chapters (5)
- 0:00Start
- 4:34Turn the lights on - Little to no built in instrumentation monitoring
- 8:32The Site Crashes While on the phone with the customer's dev team it's now
- 40:41The Site is SLOOOOOW! . Qualitative, emotionally focused statement Valid, but not actionable from an engineering perspective . Without knowing what fast enough is cannot formulate a plan
- 47:51Scalability Bottlenecks
