~/talk

Ordering the Chaos: Cleaning Logs and Ordering Events in Microservices

Talkat DotNext 2022 Spring · 2022-06-16..06-27· [distributed-systems]
slides:none on file

Physical timestamps break across datacenters and DST; relying on NTP or UTC alone produces out-of-order reads and leap-second havoc, so the recommendation is to use logical clocks to order single workflows. Implement Lamport timestamps plus a stable correlation id propagated in two headers; receivers take max(local,received)+1 and logs are sorted by that counter (shown working in CloudWatch). For stronger cross-node causality use vector clocks (correct but network-heavy); TrueTime needs local atomic clocks and is expensive.

AI-written summary · about

  1. 0:00Introduction
  2. 1:32What is time in systems
  3. 5:05Wall clock limitations
  4. 12:30Time zones and DST issues
  5. 28:22Clock synchronization algorithms
  6. 32:12Logical clocks vs physical clocks
  7. 34:23Lamport timestamps explained
  8. 41:09Implementing logical timestamps
  9. 47:54Propagating correlation IDs
  10. 51:06Ordering and cleaning logs
  11. 53:33Vector clocks and consensus
  12. 58:09Summary and takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.