The Artima Developer Community
Sponsored Link

Java Community News
Apache Releases Java Caching System 1.3

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Apache Releases Java Caching System 1.3 Posted: Jun 7, 2007 4:53 PM
Reply to this message Reply
Summary
The Java Caching System (JCS) is a distributed Java cache infrastructure. It works with four different types of cache implementations: an in-memory cache, a disk cache, a network-distributed (lateral) cache, and a type of remote cache that uses RMI.
Advertisement

JCS, or the Java Caching System, is a relatively new entrant into the growing family of distributed Java caches. Even so, it has been in development since 2001, according to the project's home page, which announced the release of JCS 1.3 this week.

The most important use-case for JCS is to speed up, and scale up, Web applications:

JCS is a front-tier cache that can be configured to maintain consistency across multiple servers by using a centralized remote server or by lateral distribution of cache updates. Other caches, like the Javlin EJB data cache, are basically in-memory databases that sit between your EJB's and your database. Rather than trying to speed up your slow EJB's, you can avoid most of the network traffic and the complexity by implementing JCS front-tier caching. Centralize your EJB access or your JDBC data access into local managers and perform the caching there.

The project documentation also highlights that JCS can "scale into the tens of servers."

JCS is based on what the project describes as a "composite cache," potentially consisting of four different types of cache implementations:

Four types of caches can be plugged into the Composite Cache for any given region: (1) Memory, (2) Disk, (3) Lateral, and (4) Remote. The Composite Cache orchestrates access to the various caches configured for use in a region.

The JCS distribution provides an implementation of each. Its lateral cache, for instance, uses UDP to discover other cache nodes and to distribute data to available nodes. The disk cache implementation, by contrast,

Follows the fastest pattern for disk swapping. Cache elements are written to disk via a continuous queue-based process. The length of the item is stored in the first few bytes of the entry. The offset is stored in memory and can be reference via the key. When items are removed from the disk cache, the location and size are recorded and reused when possible. Every aspect of the disk cache is configurable, and a thread pool can be used to reduce the number of queue worker threads across the system.

Have you used JCS in your projects? If so, what experiences with this cache can you share?

Topic: Does REST Need WADL? Previous Topic   Next Topic Topic: What is GlassFish? A New Sun Article Explains

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use