{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-event-ordering",
  "id": "event-ordering",
  "kind": "constraint",
  "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": "Event Ordering",
  "ref": "architecture:event-ordering",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-ordering-key-or-sequence",
          "json": "https://banes-lab.com/json/records/lexicon/ordering-key-or-sequence",
          "label": "Ordering Key or Sequence",
          "markdown": "https://banes-lab.com/records/lexicon/ordering-key-or-sequence.md",
          "ref": "lexicon:ordering-key-or-sequence"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-causality",
          "json": "https://banes-lab.com/json/records/architecture/causality",
          "label": "Causality",
          "markdown": "https://banes-lab.com/records/architecture/causality.md",
          "ref": "architecture:causality"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-correct-stateful-processing",
          "json": "https://banes-lab.com/json/records/lexicon/correct-stateful-processing",
          "label": "Correct Stateful Processing",
          "markdown": "https://banes-lab.com/records/lexicon/correct-stateful-processing.md",
          "ref": "lexicon:correct-stateful-processing"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-unordered-parallel-consumption",
          "json": "https://banes-lab.com/json/records/lexicon/unordered-parallel-consumption",
          "label": "Unordered Parallel Consumption",
          "markdown": "https://banes-lab.com/records/lexicon/unordered-parallel-consumption.md",
          "ref": "lexicon:unordered-parallel-consumption"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-throughput",
          "json": "https://banes-lab.com/json/records/architecture/throughput",
          "label": "Throughput",
          "markdown": "https://banes-lab.com/records/architecture/throughput.md",
          "ref": "architecture:throughput"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-event-ordering-throughput",
          "json": "https://banes-lab.com/json/records/tension/event-ordering-throughput",
          "label": "Event Ordering / Throughput",
          "markdown": "https://banes-lab.com/records/tension/event-ordering-throughput.md",
          "ref": "tension:event-ordering-throughput"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-unordered-parallel-consumption",
          "json": "https://banes-lab.com/json/records/lexicon/unordered-parallel-consumption",
          "label": "Unordered Parallel Consumption",
          "markdown": "https://banes-lab.com/records/lexicon/unordered-parallel-consumption.md",
          "ref": "lexicon:unordered-parallel-consumption"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-partitioning",
          "json": "https://banes-lab.com/json/records/architecture/partitioning",
          "label": "Partitioning",
          "markdown": "https://banes-lab.com/records/architecture/partitioning.md",
          "ref": "architecture:partitioning"
        },
        {
          "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"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-reorder-buffer",
          "json": "https://banes-lab.com/json/records/lexicon/reorder-buffer",
          "label": "Reorder Buffer",
          "markdown": "https://banes-lab.com/records/lexicon/reorder-buffer.md",
          "ref": "lexicon:reorder-buffer"
        }
      ],
      "relation": "refactored-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/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"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-total-order-broadcast",
          "json": "https://banes-lab.com/json/records/architecture/total-order-broadcast",
          "label": "Total-Order Broadcast",
          "markdown": "https://banes-lab.com/records/architecture/total-order-broadcast.md",
          "ref": "architecture:total-order-broadcast"
        }
      ],
      "relation": "reinforced-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/pag/orchestration#declared-structure",
          "json": "https://banes-lab.com/json/pag/orchestration/declared-structure",
          "label": "Orchestration as declared structure",
          "markdown": "https://banes-lab.com/pag/orchestration/declared-structure.md",
          "ref": "chapter:/pag/orchestration#declared-structure"
        },
        {
          "href": "https://banes-lab.com/disciplined-methodology/collaborate#the-board-and-the-venue",
          "json": "https://banes-lab.com/json/disciplined-methodology/collaborate/the-board-and-the-venue",
          "label": "The board and the venue",
          "markdown": "https://banes-lab.com/disciplined-methodology/collaborate/the-board-and-the-venue.md",
          "ref": "chapter:/disciplined-methodology/collaborate#the-board-and-the-venue"
        },
        {
          "href": "https://banes-lab.com/disciplined-methodology/ship#one-chain",
          "json": "https://banes-lab.com/json/disciplined-methodology/ship/one-chain",
          "label": "One chain",
          "markdown": "https://banes-lab.com/disciplined-methodology/ship/one-chain.md",
          "ref": "chapter:/disciplined-methodology/ship#one-chain"
        },
        {
          "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#architecture-category-scalability-performance-optimization",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-scalability-performance-optimization",
          "label": "Scalability / Performance / Optimization",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-scalability-performance-optimization.md",
          "ref": "chapter:/ontology#architecture-category-scalability-performance-optimization"
        },
        {
          "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 rule or precondition that a stateful consumer processes the events of one key in their sequence order.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-causal-dependency",
      "json": "https://banes-lab.com/json/records/architecture/causal-dependency",
      "label": "Causal Dependency",
      "markdown": "https://banes-lab.com/records/architecture/causal-dependency.md",
      "ref": "architecture:causal-dependency"
    },
    "previous": {
      "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"
    }
  },
  "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": "events.sort((a, b) => a.streamOrdinal - b.streamOrdinal);",
    "before": "events.sort((a, b) => a.timestamp - b.timestamp);",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "stream",
    "queue",
    "consumer"
  ],
  "severity": "contextual"
}
