2008/5/15 Carl Trieloff <[EMAIL PROTECTED]>:

> 1. keep a reference to each message in memory  (so this is the limiting
> factor)
> 2. then we can release to content of the message (for both durable or
> transient messages)
>
> 3. there are two policies for releasing a message, they are
>   - the size of any given message (i.e. larger than X bytes then release
> content)
>   - the depth of a queue is more than Y, then start releasing all messages
> to disk.

Yes, this is the general idea in Java too but the crux of the issue is
how you deal with the enqueuing information etc as well as message
payload. You start out with a couple of pointer but quickly on a 64
bit machine you can end up storing 128 bytes per message or more.

RG

Reply via email to