[Clustering/JBoss] - Re: Clustering with UDP or TCP - What is best?
by bstansberry@jboss.com
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#4150129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150129
18 years, 1 month
[JBoss Messaging] - Re: getting messages by the order they were sent
by subrata_jboss
-->My producer is sending Message M1,M2,M3 to a queue /queue/q1
-->no consumer is running that time, so i see M1,M2,M3 in mysql data base.
--> I started my producer to send messages M4,M5,M6 and at the same
time i started my consumer too.
--> So in the consumer i see the messages M4,M5,M6 first followed by M1,M2,M3(that means it is taking the messages from the memory first rather than persistent data base)
--> is there any mechanism that ensures that i get M1,M2,M3,M4,M5 then M6
(i.e. old message first)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150100#4150100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150100
18 years, 1 month