Subtopics will be more efficient.  The filtering happens on the server.
We maintain the subscribers for a given subtopic via a hashtable so it
is fast to route messages to clients.  

 

Jeff

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of aduston1976
Sent: Monday, November 05, 2007 7:07 PM
To: [email protected]
Subject: [flexcoders] subtopics vs destinations

 

Hi, easy question here. I have a Java application that sends different
messages out to different flex clients. I do this from Java using
flex.messaging.messages.AsyncMessage. I can either dynamically create
a new destination for each flex client, or I can have them all use the
same destination but have a different subtopic for each client. Which
is more efficient? Suppose there is one destination with different
subtopics. Is the subtopic filtering performed on the server or on the
client? In other words, if I send a message to one subtopic, does the
message go over the wire to each client, but then get filtered by the
Consumer on the client?

Thanks very much!
Adam

 

Reply via email to