9

Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

Embed Size (px)

Citation preview

Page 1: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging
Page 2: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

Messaging is an important means of communication between two systems.

There are 2 types of messaging.

- Synchronous messaging.

- Asynchronous messaging.

Page 3: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

Some observations: Client/Server computing is generally based on a model of synchronous communication:

Client and server have to be active at the time of communication

Client issues request and blocks until it receives reply

Server essentially waits only for incoming requests, and subsequently processes them

Page 4: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

Client cannot do any other work while waiting for reply

Failures have to be dealt with immediately (the client is waiting)

Connection overhead; Higher probability of failures.

Page 5: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

There are two ways to handle failures: 1. Transactional RPC

Enable more complex interactions with some execution guarantees .

2. Service replication and load balancing.

Prevents system from shutting down is service is not available.

Page 6: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

MOM stands for message oriented messaging.

Asynchronous forms of interaction Communication by exchanging messages More dynamic Use of queues acting as buffers.

Page 7: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

MOM Core

client application server application

inbound queue

queuedmessages

Page 8: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

Both synchronous and asynchronous messaging.

Guaranteed message delivery. Heterogeneous platforms. Message priority possible. Broadcast messages. Filtering of messages.

Page 9: Messaging is an important means of communication between two systems. There are 2 types of messaging. - Synchronous messaging. - Asynchronous messaging

Feature MOM RPCMetaphor Post-office like Telephone likeClient/Server time relationship

Asynchronous. Clients and Servers may operate at different times and speeds

Synchronous. Clients and Servers must run concurrently. Servers must keep up with clients.

Client/Server Sequencing

No fixed sequence Servers must first come up before clients can talk to them.

Style Queued Call-ReturnPartners need to be available No YesTransactional Support Yes (Some Products)

Message Queue can participate in the commit synchronization

No. Requires a Transactional RPC.

Message Filtering Yes No