Wrong choice causes stale configs or memory leaks.
-
IOptionsSnapshot→ per request -
IOptionsMonitor→ real-time updates
✅ Rule
Use Monitor only if config changes at runtime.
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
Wrong choice causes stale configs or memory leaks.
IOptionsSnapshot → per request
IOptionsMonitor → real-time updates
Use Monitor only if config changes at runtime.