User development,

A new message was posted in the thread "pub/sub design":

http://community.jboss.org/message/522127#522127

Author  : Rocky Triton
Profile : http://community.jboss.org/people/rockytriton

Message:
--------------------------------------------------------------
Hi, I need some advice on how best to design a system. I want to implement 
pub/sub to notify users of changes to various mailboxes. These are shared 
mailboxes, there are about 400 of them in the system total. Some of them tend 
to be huge, about 20,000+ items in them. I want to have the users subscribe to 
that specific mailbox topic and get notifications when mails are added or 
removed, that way I only have to refresh the whole mailbox at startup, after 
that refresh it will just add/remove on the fly whenever it receives 
notifications through the subscription. 
 
 The question is this, should I go with a topic for each of the 400 mailboxes, 
the users who share these mailboxes will subscribe to it, so there will be 
topics such as "/topic/sharedMBX1", "/topic/sharedMBX2", etc... Or should I go 
with a single topic, say "/topic/MBXUpdates" and use a message selector, so 
when the user creates a TopicSubscriber, it will be created with the message 
selector "sharedMBX2" to only get message notifications for that specific 
mailbox.
 
 I guess what it comes down to is, is it easier to manage 400 topics or just 
manage one single topic that gets 400 times the messages as it would if there 
were 400 topics?
 
 Thanks in advance
 -- Rocky
--------------------------------------------------------------

To reply to this message visit the message page: 
http://community.jboss.org/message/522127#522127


_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to