EHCACHE Replication Methods

EHCAHE Replication Methods:

1. RMI : Remote Method Invocation

2.JGroup

3.JMS : Java Message Service

Comparison:

Feature RMI JGROUP JMS
Network Load High Not Known
Memory Consumption Less than JGROUP More than RMI
Speed Fast Fast
Multicast Yes Yes Yes
Reliable Yes Yes
Uses TCP Yes Yes
Uses UDP No Yes
Coupling(between Sender and Receiver) Tightly Coupled Tightly Coupled Loosely Coupled
Scalable Less More More
Uses Message Queue Yes
Active Message Queue Server Required
Maturity More Less than RMI Less than JGROUP

Scalability:

1)RMI

If we add new Application server we need configuration change for every war that will be deployed.

So its less scalable.

2)JGROUP

Does not requires extra configuration on addition of App Server.

3)JMS

Does not requires extra configuration on addition of App Server. Need to distribute same war file to new added server.

Relibility:

1)RMI

Less reliable. Reliability Enhanced with Ehcache Integration.

2)JGROUP

Can Configured with both TCP or UDP. With TCP its reliable.

3)JMS

Uses TCP, And Message Queue is handled by Server(Active MQ server)

So guaranteed delivery of messages.

Network Load:

RMI and JGroups both are acceptably fast.

JGroups consumes more memory .

RMI with TCP  may cause higher network load when used with larger amount of nodes.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s