Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 3 Fundamentals : Multicast and Point-to-Point Messages

Multicast and Point-to-Point Messages
Rendezvous software uses subject-based addressing to support both reliable multicast communications and point-to-point communications. These two kinds of messages differ slightly in the syntax of their subject names, but dramatically in their behavior.
Both kinds of messages are efficient; in either multicast or point-to-point mode, the message itself traverses the network only once.
Point-to-Point Messages
A point-to-point message has only one recipient program; its destination is an inbox—a subject name created dynamically by a specific program process. Figure 2 illustrates this model of message delivery. (One process can receive several copies of the message by listening several times to the same inbox name, but two processes cannot share an inbox name.)
All inbox names begin with _INBOX as their first element. A Rendezvous function creates inbox names dynamically; programs may not invent inbox names (in contrast to public subject names).
Figure 2 Point-to-Point Message
A point‑to‑point message is like a telegram sent to one specific person—no other person can receive it. The sender must know the name of the intended recipient. An inbox name is analogous to the address on a telegram. Creating an inbox name establishes a unique address for receiving point‑to‑point messages. To send a point‑to‑point message, the sending program must know the inbox name of the destination. (A recipient makes its inbox name known by multicasting it to potential senders using a prearranged subject name.)
Multicast Messages
A multicast message is any message with many potential recipients. Potential recipients are called subscribers.
The subject name of the message indirectly determines the message’s destination—the set of subscribers that receive the message. Every subscriber to that subject name receives the message; non-subscribers do not receive it. The set of subscribers can change dynamically, depending on which programs are listening for the subject name. If no subscribers exist, then none receive the message (even though it still travels the network). Figure 3 illustrates this model of message delivery.
Rendezvous applications are free to invent public subject names, constrained only by the syntactic and semantic rules in Subject Names.
Figure 3 Reliable Multicast Message
Multicast messages are like radio broadcasts; the sender picks a frequency, and any listener who tunes to that frequency receives the broadcast. The public subject name is analogous to a radio frequency; any program that listens for a subject receives all messages bearing that subject name.
A multicast message does not imply multicast packet protocols. A multicast message can reach its destination using multicast protocols, broadcast protocols, or even intra-process communications—depending on the transport object that the program uses to send the message. (In contrast, TIBCO Rendezvous documentation uses phrases such as multicast group and multicast addressing to indicate multicast network protocols.)

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved