concept field - level replication in category jboss

appears as: Field-level replication
JBoss in Action: Configuring the JBoss Application Server

This is an excerpt from Manning's book JBoss in Action: Configuring the JBoss Application Server.

More information on these and other options related to replication can be found in the DTD file corresponding to the jboss-web.xml deployment descriptor. The DTD file can be found in docs/dtd/jboss-web_5_0.dtd under the top level of the JBoss installation. Field-level replication can provide significant performance advantages for many applications. Let’s take a closer look.

13.2.3. Using field-level replication

Field-level replication takes advantage of JBoss Cache’s fine-grained replication feature, which replicates only the changed parts of an object. If you update a field on an object, only that field is replicated. Field-level replication can tremendously cut down the amount of data replication, increasing your application’s throughput. We reference an article at the end of the chapter that talks about benchmark results for different object sizes and load scenarios.

JBoss ships with a cache configuration that supports field-level replication. To enable JBoss Web Server to use this cache configuration, you have to modify the WebApp-ClusteringDefaultsDeployer bean in the server/all/deployers/jbossweb.deployer/ META-INF/war-deployers-beans.xml file. In that bean, you must change the cacheName property from standard-session-cache to field-granularity-session-cache.