I've been developing REST API using springboot and came across situation like API needs to maintain some reference data table eg : consumer will request with a particular key and that key will be interpreted inside the API by looking up reference data my question is from below methods which are the best way to handle this if none of these proper methods what are the suggested ways.
- Have reference data in the database as a key-value pairs - modification is cons
- Have it inside the project as an XML data file - not centralized modification on multiple places 3.Have it inside the JVM as the static data load on app bootstrap
further, this is open for you all to suggest me any additional ways or most optimum way