Java object caching, which is faster, reading from a file or from a remote machine?

Posted by Kumar225 on Stack Overflow See other posts from Stack Overflow or by Kumar225
Published on 2009-06-10T18:04:21Z Indexed on 2010/06/12 15:52 UTC
Read the original article Hit count: 305

Filed under:
|
|

I am at a point where I need to take the decision on what to do when caching of objects reaches the configured threshold.

Should I store the objects in a indexed file (like provided by JCS) and read them from the file (file IO) when required or have the object stored in a distributed cache (network, serialization, deserialization)

We are using Solaris as OS.

============================

Adding some more information.

I have this question so as to determine if I can switch to distributed caching. The remote server which will have cache will have more memory and better disk and this remote server will only be used for caching.

One of the problems we cannot increase the locally cached objects is , it stores the cached objects in JVM heap which has limited memory(using 32bit JVM).

========================================================================

Thanks, we finally ended up choosing Coherence as our Cache product. This provides many cache configuration topologies, in process vs remote vs disk ..etc.

© Stack Overflow or respective owner

Related posts about java

Related posts about cache