{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-lamport-clocks",
  "id": "lamport-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": "Lamport Clocks",
  "ref": "architecture:lamport-clocks",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-logical-counter",
          "json": "https://banes-lab.com/json/records/lexicon/logical-counter",
          "label": "Logical Counter",
          "markdown": "https://banes-lab.com/records/lexicon/logical-counter.md",
          "ref": "lexicon:logical-counter"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-happens-before-reasoning",
          "json": "https://banes-lab.com/json/records/lexicon/happens-before-reasoning",
          "label": "Happens-Before Reasoning",
          "markdown": "https://banes-lab.com/records/lexicon/happens-before-reasoning.md",
          "ref": "lexicon:happens-before-reasoning"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-partial-ordering",
          "json": "https://banes-lab.com/json/records/lexicon/partial-ordering",
          "label": "Partial Ordering",
          "markdown": "https://banes-lab.com/records/lexicon/partial-ordering.md",
          "ref": "lexicon:partial-ordering"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-wall-clock-ordering-assumption",
          "json": "https://banes-lab.com/json/records/lexicon/wall-clock-ordering-assumption",
          "label": "Wall-Clock Ordering Assumption",
          "markdown": "https://banes-lab.com/records/lexicon/wall-clock-ordering-assumption.md",
          "ref": "lexicon:wall-clock-ordering-assumption"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-no-concurrent-causality-distinction",
          "json": "https://banes-lab.com/json/records/lexicon/no-concurrent-causality-distinction",
          "label": "No Concurrent Causality Distinction",
          "markdown": "https://banes-lab.com/records/lexicon/no-concurrent-causality-distinction.md",
          "ref": "lexicon:no-concurrent-causality-distinction"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-lamport-clocks-no-concurrent-causality-distinction",
          "json": "https://banes-lab.com/json/records/tension/lamport-clocks-no-concurrent-causality-distinction",
          "label": "Lamport Clocks / No Concurrent Causality Distinction",
          "markdown": "https://banes-lab.com/records/tension/lamport-clocks-no-concurrent-causality-distinction.md",
          "ref": "tension:lamport-clocks-no-concurrent-causality-distinction"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-wall-clock-ordering-assumption",
          "json": "https://banes-lab.com/json/records/lexicon/wall-clock-ordering-assumption",
          "label": "Wall-Clock Ordering Assumption",
          "markdown": "https://banes-lab.com/records/lexicon/wall-clock-ordering-assumption.md",
          "ref": "lexicon:wall-clock-ordering-assumption"
        }
      ],
      "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/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 stamps each event with a logical counter, advanced on every send and receive, to give a partial order.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-hybrid-logical-clocks",
      "json": "https://banes-lab.com/json/records/architecture/hybrid-logical-clocks",
      "label": "Hybrid Logical Clocks",
      "markdown": "https://banes-lab.com/records/architecture/hybrid-logical-clocks.md",
      "ref": "architecture:hybrid-logical-clocks"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-vector-clocks",
      "json": "https://banes-lab.com/json/records/architecture/vector-clocks",
      "label": "Vector Clocks",
      "markdown": "https://banes-lab.com/records/architecture/vector-clocks.md",
      "ref": "architecture:vector-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 = { logicalTime: lamport.tick(), value: foo };\nlamport.observe(remoteEvent.logicalTime);",
    "before": "const event = { at: Date.now(), value: foo };",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "distributed events"
  ],
  "severity": "contextual"
}
