logo       

Re: Send one message vs send many messages performance: msg#00018

java.javagroups.general

Subject: Re: Send one message vs send many messages performance

I would send a single message, reason being that most of the time
multiple messages can be serialized into a byte[] buffer (and placed
into an org.jgroups.Message) more efficiently, than having to marshall
each message separately

Tim Fox wrote:
> In JBM sometimes we need to cast a batch of messages across the group,
> e.g. on transaction commit when multiple messages have been sent in a
> transaction.
>
> I can either do this by casting a different jgroups message for each jms
> message, or by casting a single jgroups message containing a list of the
> jms messages.
>
> Can you think of any pros/cons of either approach. I'm thinking in terms
> of performance, overhead of a single jgroups message, message
> frag/defrag overhead etc?

--
Bela Ban
Lead JGroups / Manager JBoss Clustering Group
JBoss - a division of Red Hat

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise