Project

General

Profile

Story #6560

in v2, remove LocalCache from get and getSytemMetadata calls

Added by Rob Nahf about 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_libclient_java
Target version:
Start date:
2014-11-10
Due date:
% Done:

100%

Story Points:
Sprint:

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

Related to Infrastructure - Story #6494: Remove local caching of inputstreams from v1 API method implementations Closed 2014-11-10 2014-12-15
Related to Java Client - Bug #7497: javax.transaction jta 1.0.1B artifact missing from maven central Closed 2015-11-20

Associated revisions

Revision 17904
Added by Rob Nahf over 8 years ago

fixes: #7497, #6560. Removed JCS module from the pom, the LocalCache class, and API logic for caching get and getSystemMetadata objects.

Revision 17904
Added by Rob Nahf over 8 years ago

fixes: #7497, #6560. Removed JCS module from the pom, the LocalCache class, and API logic for caching get and getSystemMetadata objects.

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.)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)