Lesson 3: Time in Distributed Systems Flashcards

1
Q

What is physical time? How is it different than logical time?

A

Physical Time is the time on an actual clock.

Logical Time keeps track of time in their own way, but they can be used to order events in a distributed system.

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

Why do we need time?

A

When we’re working with a single node it’s easy for us to determine the order of events based on timestamp.

Order is a requirement for:
- causality
- scheduling
- garbage collection

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

Why is measuring time hard in distributed systems?

A

Network delays and lost messages make it impossible for the receiver of events to make any guarantees about the order of events.

We could have each node timestamp its message and then order on the receiving node based on these timestamps. However, clocks are not guaranteed to be synchronized!

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