language agnostic - How to dynamically configure an application? -


When I say "configure", I mean to save those values ​​which can change very often like this) And then when you need to change them you do not want to re-compile your application.

Where to save those values? Database? XML file? Flat file?

It depends on how many times these changes and who or what changes them some applications For specific settings, it is best to use an XML or config file, where developers are responsible for updating it. For other "business" values ​​(such as exchange rates, tax rates, etc.), it is best to provide a UI for users (not developers) to keep them in the database and update them.

It also depends on how many applications rely on this value, for example, if many applications rely on certain settings (such as email server address), then it is in a database It would be best to put it because it will be easily accessible from any machine where the app is running. / P>


Comments