Project: duracloud
Issue DURACLOUD-949: Beanstalk: Connect DuraStore to MC database
In order to have all of the information that is needed, DuraStore in beanstalk will need to have a direct connection to the MC database. Much of the code for setting up this connection should be already available from the MC or Mill (share/reuse where possible). Options for getting the database connection information: - As system properties specified in JAVA_OPTS (using beanstalk environment variables, note that there is a 256 character limit) - Use JAVA_OPTS to point to a config file S3 URL, and pull that in on startup. In order for the DuraStore calls to complete quickly, and to keep the database load down, information from the DB should be cached. This could be done preemptively or lazily, but in either case, there will need to be handling for invalidation, to ensure updates to the database are picked up.
Story points: 2