Skip to content

Crude attempt to mimic distributed system logical clocks based on RX.NET

Notifications You must be signed in to change notification settings

selfdeceited/logicalclocks

Repository files navigation

Description

Here be dragons examples to implement Logical Clock from this magical book

I use RX.NET to mimic a distributed system. Code's ugly, yeah well what else is new.

Model

  • Three processes, streaming events with twisted timestamps (like from other machines)
  • Each process have a 50% chance to publish an event to another. You can control the amount of republishing you want to happen.

Scalar Clock

  • Eventual consistency happens
  • No causal consistency happens

scalar.png

Vector Clocks

  • Causal consistency happens

vector.png

TODO

  • Implement Singhal–Kshemkalyani’s differential technique
  • Implement Fowler-Zwaenepoel direct-dependency technique
  • Also need to think how to visualize this stuff. Maybe interactive console?

About

Crude attempt to mimic distributed system logical clocks based on RX.NET

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages