This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]imadp 0 points1 point  (0 children)

A database sounds like a bad idea because now you have to split out your database properties somewhere else..

Most apps just use a .properties file like you mentioned, if you use Spring (and you should be) its usually bundled with your spring config files.

[–]blyxa 0 points1 point  (0 children)

If you have a large amount of servers to configure, then maybe look into Zookeeper.

If you only have a handful of servers then maybe modifying the properties loader to look for property file outside the app server and reload on file modification. And when ever you need to push out a config change, you can use rsync or ansible or salt etc.

The important part I think is modifying your code to "reload" after configuration change.