[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Paging discussion:

timfox do-not-reply at jboss.com
Thu Jul 31 02:50:10 EDT 2008


"clebert.suconic at jboss.com" wrote : I have started a WIKI for paging:
  | 
  | http://wiki.jboss.org/wiki/JBossMessaging2Paging
  | 
  | The basic idea is to have a FileBasedCollection where we store Messages, having an eviction cache based on watermark, and a FileBasedQueue for messageReferences.
  | 
  | Both FileBasedQueue and FileBasedCollection would share the same implementations.
  | 
  | I'll  use SequentialFile to access the disk, so if we decide to go AIO later we could easily change it.
  | 
  | One thing I'm doing differently from what I suggested on the face2face meeting was regarding the MessageReferences.
  | 
  | During the f2f I thought about not requiring a separated file for MessageReferences where those references would just be a pointer on the main DataFile. but then I realized that in some events the queue could eventually get out of order. (such as redelivers caused by rollbacks). So, on that case we need a separated data structure for MessageReferences.
  | 
  | The wiki so far only has some ideas and requirements. I will update it as soon as I have some UML diagram.
  | 
  | 

Can you elaborate more why you need different files for messages and message references? I found it hard to understand from your wiki.

Also I didn't really understand the part about indexes.

Some deeper explanation on the wiki would be good. I think it's currently quite hard to work out your intentions from that page, and how they differ from what was discussed in Paris.

Also, please can you create a new branch for this work?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167797#4167797

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167797



More information about the jboss-dev-forums mailing list