[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Some thoughts on large messages and message chunking
clebert.suconic@jboss.com
do-not-reply at jboss.com
Thu Oct 2 18:34:43 EDT 2008
"Tim Fox" wrote : When sending a message, we simply check if message size is greater than ml. If false then message sending and delivery proceeds exactly as normal. If true, then we send a standard SendMessage packet, followed by n MessageContinuation packets which contains the rest of the message split into each packet.
|
I'm doing this with a slightly variant.
SessionSendMessage creates the ServerMessageImpl, and decode/encodes directly from the Buffer to avoid copy and get some performance.
As SessionSendMessage is the class responsible for creating the MessageImpl, I was have a little difficult on instantiating the ServerMessage that will store the body on a file.
Because of that, when using LargeMessages I'm using another PacketType to deal with Large Messages. With that the regular use case would be optimized avoiding extra non necessary copies.
I will commit it tomorrow (on trunk or another branch) and it will be easier to talk about this later when I have some code to show the differences.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180171#4180171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180171
More information about the jboss-dev-forums
mailing list