users@shoal.java.net

dsc scalability question

From: leehui <leehui70_at_gmail.com>
Date: Mon, 21 Apr 2008 11:22:28 +0800

Hi,

        Recently, I use DistributedStateCache (gms.getGroupHandle().getDistributedStateCache()) to store some data.
 The cache is global. I mean, if one group member changes the cache's value, the value must replicate to all the
 other group members. Is that true?
         If so, when you put a lot of objects into cache, the overload of network will be expensive. How should I do when I
store lots of objects via DistributedStateCache?

         Another question is when shoal uses p2p commnunication,and when shoal uses group communication. Look at following api (GroupHandle's interface).

         (1)void sendMessage(String targetComponentName, byte[] message) throws GMSException;
        (2)void sendMessage(String targetServerToken, String targetComponentName,byte[] message) throws GMSException;
         (3)void sendMessage(List<String> targetServerTokens, String targetComponentName,byte[] message) throws GMSException;
        
        Can I say that (1) uses group communication while (2)&(3) use p2p communication?
                 
        Thank you in advance for your reply!
                
--------------
leehui
2008-04-21