Message-Oriented Communication: Presented By: Ms. Punam S. Pawar
Message-Oriented Communication: Presented By: Ms. Punam S. Pawar
• synchronous communication
the sender is blocked until the message is
stored in a local buffer at the receiving host or
is delivered to the receiver
• asynchronous communication
the sender continues after it has submitted
the message for transmission
Persistent vs. transient communication
• persistent communication
a message is stored by the communication system as long as it
takes to deliver it – never lost or thrown away
• transient communication
- a message is stored by the communication system only as long
as the sending and receiving application are executing
-Discard message if it can’t be delivered to next server/receiver
-Example: transport-level communication services offer
transient communication
- Example: Typical network router – discard message if it can’t
be delivered next router or destination
Example - Persistent communication of letters
Forms of communication
• Examples
• Message-oriented transient communication
- Berkeley Sockets
- Message Passing Interface (MPI)
• Message-oriented persistent communication
- Message Queuing Model
Message-oriented Transient
Communication
• Many distributed systems and applications are built directly
on top of the simple message-oriented model offered by the
transport layer.
Berkeley Socket
• Socket: It is a communication end point.
Attribute Description
FIFO delivery Indicates that messages are to be delivered in the order they are sent
Primitive Description
MQopen Open a (possibly remote) queue
MQclose Close a queue
MQput Put a message into an opened queue
MQget Get a message from a (local) queue