First, suggest you have a look at the presentation Bela Ban and I did at JBoss World 2008,
which gets into this and other topics you've recently asked about:
http://jbossworld.com/downloads/pdf/wednesday/JBOSS_1-150pm_ClusterTuning... .
The basic answer to your question is the more servers you need to send a message to, the
less well TCP will do, since a server has to send n messages to communicate with n peers,
while UDP just sends one. A TCP-based stack works fine for smaller clusters (4-6 or less),
and if you use buddy replication you're not sending messages to all peers, so TCP can
be suitable even with a bigger cluster.
Note that if you use a TCP-based stack, you either need to list all hosts in the TCPPING
protocol's initial_hosts parameter, or you should replace TCPPING with the MPING
protocol, which uses UDP multicast for group discovery.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150129#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...