5: IPC Overview Flashcards

1
Q

what is a distributed system? pros and cons?

A

a system with components located at networked computers communicating and coordinating by passing messages. location of component is less relevant

can choose location optimally, e.g near the client for responsiveness or near the data for throughput, offers a more seamless experience

placing components remotely increases failure modes e.g slow network, network failure, failed database, out of data replicas and mirrors, legal problems…

increases complexity which is the opposite of CTs goal

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

what is the purpose of middleware?

A

to provide an abstraction - to glue together/mediate between two seperate systems - to provide an API so that programmers dont have to deal with underlying APIs

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

what are the types of middleware? POSTM

A
P - procedure
O - object
S - service
T - transaction
M - message

…oriented

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

Describe the T in POSTM

A

Transaction middleware performs transactions across machines, focussing on the ACID database properties. Components are database applications. Considered impractical because of scaling issues.

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

Describe the P in POSTM

A

Procedure oriented. uses remote procedure calls. middleware recieves function calls and sends it to a worker component, then sends the returned result to the caller. a single thread of control that migrates across the network
hard to detect failure - has something died or is the network just slow?
can’t pass by reference which constains the languag eoptions

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

Describe the M in POSTM

A

message oriented middleware involves sending messages between processes. messages are queued at intermediate message servers
messages are asynchronous

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

Describe the S in POSTM

A

service middleware. each component provides a single service
compose (orchestrate) services to create larger services and applications
lifecycle issues - service may want to unpublish itself. cant assume a service will remain available

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

what are web services?

A

a service that can be invoked using web rprotocls, leverageing the web to do computation

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