Publishing Bi-Weekly · ASP.NET Core · Design Patterns · Architecture · 20 yrs C#/.NET · cleancsharp.com
// Topic

Production

Hard-won patterns from systems with real traffic — the failure modes and fixes you only learn in production.

posts
Configuration, Production, Best Practices"> 0
Live Configuration

🔒 Configuration Management That Won't Get You Fired

The DBA noticed the prod connection string in a public GitHub commit. By lunch you were updating LinkedIn. Configuration is the boring infrastructure that ends careers — and it's not that hard to get right. Here's the playbook for IConfiguration, secrets, environments, and rotation.

Async, Production, Best Practices"> 1
Live Async

⚡ Async/Await — Don't Block Your Threads

A waiter who hands the ticket to the kitchen and works the floor can serve a full dining room. A waiter who stands at the kitchen window waiting for one dish starves everyone else. Your API makes the same choice every time you turn async code back into blocking code.

Error Handling, Production"> 2
Live Error Handling

🧨 Exception Handling That Survives Production

The Skipper's exception handling strategy was simple: when something goes wrong, throw it overboard and hope for the best. That's why Gilligan's Island had a three-year runtime. Your production API doesn't get three seasons to figure it out.