The traditional .Net Framework web applications hosted in IIS will restart automatically when the configuration changes. The configuration is mainly stored in web.config and the restart will be performed by the IIS by watching the files. .Net Core and continuing .Net has the same feature to monitor the config changes and get it reflected in the application. At least in .Net the application will not be entirely restarting but the values will be available to consumers of IConfigration.
Problem
Ideally, if the consumer class of IConfiguration is not caching the values, they all get the updated values. But in large applications, there may be chances that some classes may be caching the values into member variables. Then upon config change, some classes work properly some do not. Eventually, this led to bug and production war rooms.
Having proper code reviews educate developers etc...is the solution to the problem. But as a debugger how to identify that a config changed in between which was the potential reason for the subsequent defect?
No comments:
Post a Comment