{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-hybrid-logical-clocks",
  "id": "hybrid-logical-clocks",
  "kind": "mechanism",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-causality-core",
    "json": "https://banes-lab.com/json/records/layer/causality-core",
    "label": "Causality Core",
    "markdown": "https://banes-lab.com/records/layer/causality-core.md",
    "ref": "layer:causality-core"
  },
  "name": "Hybrid Logical Clocks",
  "ref": "architecture:hybrid-logical-clocks",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-happens-before-relationship",
          "json": "https://banes-lab.com/json/records/architecture/happens-before-relationship",
          "label": "Happens-Before Relationship",
          "markdown": "https://banes-lab.com/records/architecture/happens-before-relationship.md",
          "ref": "architecture:happens-before-relationship"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-causal-consistency",
          "json": "https://banes-lab.com/json/records/architecture/causal-consistency",
          "label": "Causal Consistency",
          "markdown": "https://banes-lab.com/records/architecture/causal-consistency.md",
          "ref": "architecture:causal-consistency"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-event-ordering",
          "json": "https://banes-lab.com/json/records/architecture/event-ordering",
          "label": "Event Ordering",
          "markdown": "https://banes-lab.com/records/architecture/event-ordering.md",
          "ref": "architecture:event-ordering"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-wall-clock-correlated-causal-order",
          "json": "https://banes-lab.com/json/records/lexicon/wall-clock-correlated-causal-order",
          "label": "Wall-Clock-Correlated Causal Order",
          "markdown": "https://banes-lab.com/records/lexicon/wall-clock-correlated-causal-order.md",
          "ref": "lexicon:wall-clock-correlated-causal-order"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-physical-clock-only-ordering",
          "json": "https://banes-lab.com/json/records/lexicon/physical-clock-only-ordering",
          "label": "Physical-Clock-Only Ordering",
          "markdown": "https://banes-lab.com/records/lexicon/physical-clock-only-ordering.md",
          "ref": "lexicon:physical-clock-only-ordering"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-clock-skew",
          "json": "https://banes-lab.com/json/records/lexicon/clock-skew",
          "label": "Clock Skew",
          "markdown": "https://banes-lab.com/records/lexicon/clock-skew.md",
          "ref": "lexicon:clock-skew"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-clock-skew-hybrid-logical-clocks",
          "json": "https://banes-lab.com/json/records/tension/clock-skew-hybrid-logical-clocks",
          "label": "Hybrid Logical Clocks / Clock Skew",
          "markdown": "https://banes-lab.com/records/tension/clock-skew-hybrid-logical-clocks.md",
          "ref": "tension:clock-skew-hybrid-logical-clocks"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-physical-clock-only-ordering",
          "json": "https://banes-lab.com/json/records/lexicon/physical-clock-only-ordering",
          "label": "Physical-Clock-Only Ordering",
          "markdown": "https://banes-lab.com/records/lexicon/physical-clock-only-ordering.md",
          "ref": "lexicon:physical-clock-only-ordering"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-contextual",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-contextual",
          "label": "contextual",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-contextual.md",
          "ref": "vocabulary:severity-contextual"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-causality-ordering-distributed-time",
          "json": "https://banes-lab.com/json/records/architecture-category/causality-ordering-distributed-time",
          "label": "Causality / Ordering / Distributed Time",
          "markdown": "https://banes-lab.com/records/architecture-category/causality-ordering-distributed-time.md",
          "ref": "architecture-category:causality-ordering-distributed-time"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/software-architecture/principles#execution-joins-the-halves",
          "json": "https://banes-lab.com/json/software-architecture/principles/execution-joins-the-halves",
          "label": "Execution joins the halves",
          "markdown": "https://banes-lab.com/software-architecture/principles/execution-joins-the-halves.md",
          "ref": "chapter:/software-architecture/principles#execution-joins-the-halves"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-causality-ordering-distributed-time",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-causality-ordering-distributed-time",
          "label": "Causality / Ordering / Distributed Time",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-causality-ordering-distributed-time.md",
          "ref": "chapter:/ontology#architecture-category-causality-ordering-distributed-time"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-causality-ordering-distributed-time",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-causality-ordering-distributed-time",
          "label": "Causality / Ordering / Distributed Time",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-causality-ordering-distributed-time.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-causality-ordering-distributed-time"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-vocabulary-severity",
          "json": "https://banes-lab.com/json/ontology/schema/the-vocabulary-severity",
          "label": "Severity levels",
          "markdown": "https://banes-lab.com/ontology/schema/the-vocabulary-severity.md",
          "ref": "chapter:/ontology/schema#the-vocabulary-severity"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-resolutions",
          "json": "https://banes-lab.com/json/ontology/schema/the-resolutions",
          "label": "The resolutions",
          "markdown": "https://banes-lab.com/ontology/schema/the-resolutions.md",
          "ref": "chapter:/ontology/schema#the-resolutions"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "summary": "A mechanism that combines physical time with a logical counter, so timestamps follow causal order and stay close to wall-clock time.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-crdts",
      "json": "https://banes-lab.com/json/records/architecture/crdts",
      "label": "CRDTs",
      "markdown": "https://banes-lab.com/records/architecture/crdts.md",
      "ref": "architecture:crdts"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-lamport-clocks",
      "json": "https://banes-lab.com/json/records/architecture/lamport-clocks",
      "label": "Lamport Clocks",
      "markdown": "https://banes-lab.com/records/architecture/lamport-clocks.md",
      "ref": "architecture:lamport-clocks"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/records/architecture",
    "label": "Architecture principles",
    "markdown": "https://banes-lab.com/api/records/architecture.md",
    "ref": "api:records/architecture"
  },
  "aliases": [],
  "exemplar": {
    "after": "const event = { hlc: hlc.now(), value: foo };\nhlc.update(remoteEvent.hlc);",
    "before": "const event = { at: Date.now(), value: foo };",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "event",
    "distributed state",
    "time"
  ],
  "severity": "contextual"
}
