Ask Your Question
1

Multiple subscriber to one topic

asked 2014-04-09 20:43:27 -0500

Maya gravatar image

Hello,

Simple comprehension problem. I though that when a message on a topic was read by a subscriber it was "erased" just after. If I have, lets say, two subscribers on one topic, when new information is available, do all subscriber are going to receive the same message ? It makes sense but I never considered it that way =). So I just want confirmation.

For example if I have a subscriber with a very complex and long callback while I have a very short callback for the other subscriber, I guess it's their queue size that is going to determine which message are going to be used by he Callback but overall, thy are gong to have access to the same message. Is it correct ?

Like :

Message 1 on topic -|----> Message 1 to Subscriber 1 if space available in queue
                    |----> Message 1 to Subscriber 2 at the same time if space available in queue

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-04-09 20:58:30 -0500

ahendrix gravatar image

Yes. Topics are broadcast; all subscribers should see all messages sent to a topic. (disregarding transmission issues, queue sizes, etc).

edit flag offensive delete link more

Comments

Just as a comment, this is the pub-sub communication pattern: http://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern

demmeln gravatar imagedemmeln ( 2014-04-11 00:08:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-04-09 20:43:27 -0500

Seen: 1,248 times

Last updated: Apr 09 '14