Story #6560
in v2, remove LocalCache from get and getSytemMetadata calls
100%
Description
From discussion in maintenance standup today (Nov 10, 2014):
In the V1 architecture, LocalCache implementation for data objects and metadata objects worked well because because objects were immutable. However, in v2, we can't make that assumption for consumers, because the identifier passed in could be a series ID. There is not an external requirement to implement caching, and how it might be done in the context of both large and small objects seems to go beyond what could be handled through JCS configuration. Consensus was that context caching was an application consideration and that transparent caching could lead to inefficiencies such as double-caching, or unexpectedly and silently getting stale content.
The consensus is to remove it from get and getSysmeta, and redesign so that such the local cache is tied to the session.
Related issues
Associated revisions
History
#1 Updated by Rob Nahf almost 10 years ago
- Parent task deleted (
#6494)
#2 Updated by Rob Nahf almost 10 years ago
- Target version changed from CCI-1.5.0 to CCI-2.0.0
#3 Updated by Rob Nahf almost 10 years ago
- Project changed from Infrastructure to Java Client
- Tracker changed from Task to Story
- Category changed from d1_libclient_java to d1_libclient_java
- Target version changed from CCI-2.0.0 to CLJ-2.0.0
#4 Updated by Rob Nahf over 8 years ago
- Related to Bug #7497: javax.transaction jta 1.0.1B artifact missing from maven central added
#5 Updated by Rob Nahf over 8 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
decided to remove LocalCache/JCS entirely from d1_libclient_java since it is not being used for v2 APIs, is turned off by default on v1 APIs, libclient_java uses CachableHttpClient by default, and there are maven dependency issues with JCS (the implementation behind LocalCache.)