title: How to configure dynamic properties while using spring boot?
body: <p>I'm planning to use Spring Boot for my assignment. Its a typical server application with connection to database. I know I can use <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html" rel="noreferrer">Spring Configuration</a> to externalize my properties e.g. db connection details. But I also have other <strong>dynamic</strong> properties which needs be updated at runtime. e.g. flippers/feature flags. Certain features of my application needs to be controlled dynamically e.g. imagine a property like <strong>app.cool-feature.enable=true</strong> and then after a while the same feature would be turned off by <strong>app.cool-feature.enable=false</strong></p>
  
  <p>Any suggestions what is the best practice around ingesting such dynamic behavior at runtime? I can think of following options to trigger the change...</p>
  
  <ul>
  <li>Send a JMS message to server instance with above property change</li>
  <li>Call an exposed API endpoint on the server instance e.g. POST <a href="http://myapp/admin/config/update" rel="noreferrer">http://myapp/admin/config/update</a> {
  "config": {
  "app.cool-feature.enable": true
  }
  }</li>
  </ul>
  
  <p>I know I can write the my own custom code implementing this (it would be for the 3rd time) but just wondering if there is already standard way/common practice around dynamic property configurations that I'm not aware of. Also it would be great if it can work with other solutions like Apache ZooKeeper, coreos etcd, Netflix curator etc and have close integration with Spring.</p>
  
  <p>Thoughts?</p>