Symptoms:
-
Random timeouts
-
CPU low but requests hang
Root cause
Blocking calls inside async code:
Task.Delay(1000).Wait();
✅ Fix
await Task.Delay(1000);
Rule
Never block threads in ASP.NET.
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
Symptoms:
Random timeouts
CPU low but requests hang
Blocking calls inside async code:
Task.Delay(1000).Wait();
✅ Fix
await Task.Delay(1000);
Rule
Never block threads in ASP.NET.