Configuring remote request dispatcher caching

The creation and handling of the remote request dispatcher (RRD) message and the transfer of this data across a network creates substantial overhead. To improve performance, the local machine can receive the cache rules of the remote server and know when to cache the response locally to prevent the RRD call altogether.

About this task

Unsupported rules are cached remotely. However, remote request dispatcher does not support the entire set of rules of the cachespec.xml file for local caching. The following rules for the cachespec.xml file are supported for local caching.
parameters
Retrieves the named parameter value.
cookie
Retrieves the named cookie value.
header
Retrieves the named request header.
locale
Retrieves the request locale.
requestType
Retrieves the HTTP request method from the request.
Complete the following steps to enable RRD dynamic cache support.

Procedure

  1. Enable servlet caching on the local server See Configuring servlet caching for more information
  2. Construct and install an application with a valid cachespec.xml file policy with RRD supported rules. See the article, Configuring cacheable objects with the cachespec.xml file, for additional information.
  3. Enable servlet caching on the remote server. See Configuring servlet caching for more information
  4. Restart WebSphere Application Server. See Managing application servers for more information.

Results

To verify that dynamic cache is enabled locally, you can enable RRD trace and verify that there is a CACHE HIT printed out for multiple requests to a resource that has an appropriate cache policy. You also have the option to use CacheMonior instead of turning on tracing. If the CacheMonitor on the remote machine is not receiving cache hits, then the response is cached locally. The local CacheMonitor will not receive hits because RRD uses its own custom cache.



In this information ...


Related reference

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Feb 19, 2011 5:25:36 AM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v610web&product=was-nd-mp&topic=sampletask
File name: rweb_rrd_dynacache.html