cBioPortal / oncotree

Creative Commons Attribution 4.0 International
35 stars 26 forks source link

VersionUtil changed to go through CacheUtil instead of directly querying TopBraid #133

Closed averyniceday closed 6 years ago

averyniceday commented 6 years ago

Cache (CacheUtil) will be initialized on startup and can only be refreshed through resetCache() endpoint (either manually or when cache is stale). A cache refresh will abort if TopBraid is down -- meaning there should always be a valid cache in place. Queries related to oncotree versions (through VersionUtil) now check the cache (CacheUtil) instead of directly querying TopBraid (OncoTreeVersionRepository). This breaks the dependency on TopBraid (assuming initial startup is successful).

Cache (MSKConceptCache) will also be initialized on startup and is refreshed once a week (cron-scheduled). Refresh will abort if TopBraid is down -- valid cache will always be in place.

Application will fail to start up if TopBraid is down because the Beans are unable to be initialized (i.e MSKConceptCache bean).