12. Architectural Paradigms Flashcards

Various approaches to interprocess communication and event synchronisation

1
Q

If interaction is by means of message passing, what must each component be aware of?

A

The mechanisms for IPC and the rules for making use of the mechanisms (protocols)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What must a message send follow and coincide with?

A

Follow readiness to send.

Coincide with readiness to recieve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why do different DC architectures arise?

A

Different ways and levels of abstraction at which IPC and event synchronisation are handled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What DC paradigms are there?

A

DME- Direct Message Exchange
MME- Mediated Message Exchange
RPC- Remote Procedure Call
E-B/L-B RMI- Early Binding/ Late Binding Remote Method Invocation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe the Simple Pattern of IPC in DME architectures

A

A process must be in a position to receive a message.
A process may send a message to another process.
A process that receives a message may then process it and send a response message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does it mean that in DME event synchronisation is unmediated?

A

the interacting processes themselves must take care of it. Message exchange is direct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe Asymmetric DME. What are two examples?

A

The server process takes heavier loads.
Requires load balancing and could prevent scaling.

E.g. Web and Email

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe Symmetric DME

A

No special role is assigned to any process. Processes are peers hence it is a peer to peer architecture.

No process simply waits for requests to respond nor simply makes requests and waits for a response. Event synchronisation is less simple than asymmetric DME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe IPC in MME architectures.

A

IPC is not a direct event between sender and receiver.
Processes communicate directly with MOM (message oriented middleware)

Messages are sent to MOM, MOM sends them to the receiving processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the role of the MOM in IPC in MME architectures

A

MOM is interposed between processes. It mediates the IPC. It allows even synchronisation to be decoupled in time without threading or forking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a point to point MME architecture? What’s an example alternative?

A

Any messages going from one source process to one destination process is point to point.

messages can go to more than one destination process. An example is publish-subscribe systems.

A process subscribes with the MOM expressing interest in certain events from other processes. When a process publishes an event with the MOM, MOM notifies the subscribing processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe a RPC. What is the alternative?

A

Remote Procedure Call

Views both IPC and event synchronisation as implicit.

Alternative: consider even synchronisation explicitly and submit to an explicit IPC discipline by means of protocols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly