Date: January 19, 2025

Topic: Distributed Systems

Recall

Distributed systems properties:

In a distributed system across nodes, we believe that the processes in a node are totally ordered, and sending across nodes is done before receiving on another node.

Notes

Distributed Systems Definition

image.png

Communication through LAN/WAN

No Physical Memory

Message Communication >> Event Computation

Beliefs of a Distributed System

image.png


“Happened Before” can be from 2 possibilities, either from the same process sequentially, or a sender going before a receiver.

“Happened Before” Relation

image.png

If $a$ happened before $b$:


“Happened Before” is also transitive.

Transitivity of “Happened Before”

image.png

If $a\rightarrow b$, then $b\rightarrow c$, $a$ and $c$ must follow this relationship $a\rightarrow c$.

Happened Before Quiz

image.png

What is the relationship between $a$ and $b$?




<aside> 📌 SUMMARY: Distributed systems are connected through WAN/LAN, have no shared memory and the computation time within a node is much shorter than the communication time between nodes. Between events, they can have “happened before” relationships, where for e.g., Event 1 is a sender on Node A and Event 2 is a receiver on Node B. This guarantees that Event 1 happens before Event 2. However concurrent events can also exist for which there are no relations.

</aside>


Date: February 24, 2025

Topic: Lamport Clocks