Please enable JavaScript.
Coggle requires JavaScript to display documents.
Interprocess Communication (IPC) (Eventual Consistency (Implementing…
- Interprocess Communication (IPC)
Introduction
-
User Datagram Protocol (UDP): doesn't guarantee delivery; min amount of effort to send message; lowest overhead
-
Data representation: deals wtih how objects and data are used in application prgrams are translated into a form suitable for sending as messages over the network
-
If two processes on a shared machine, use shared memory communication
-
Group communication
-
IP multicast
-
-
-
API
-
-
-
When a multicast message reaches a computer, copies are forwarded to all processes that have sockets bound to the multicast address and the specified port number
Failure model: omission failures possible. Messages may not get to >=1 members due to a single omission
-
-
-
Terminology
Communication can be:
-
Asynchronous: send operation is non-blocking. Sending process returns as soons as the mesage is copied to a local buffer and tranmission of the message proceeds in parallel. Receive operation can be blocking/non-blocking
-
-
Message destinations
Messages sent to an (Internet address, local port) pair
-
Location transparency provided by a name server, binder or OS
-
Sockets
-
Properties
For a process to receive messages, its socket must be bound to a local port on one of the Internet addresses of the computer
-
-
-
Eventual Consistency
-
CAP theorem
consistency, availability, partition-tolerance
-
PACELC: in the presence of partitions, choose between availability and consistency; without partitions, choose between latency and consistency
To deal with inconsistencies, either
-
-
Anti-entropy
Replicas must exchange info with one another about which write they have seen --> ensures convergence
-
Get request --> route it to any server in the background OR wait until W acknowledgements before writing to survive W-1 failures
-
-
-
-
-