{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-forward-only-processing",
  "id": "forward-only-processing",
  "kind": "constraint",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-execution-core",
    "json": "https://banes-lab.com/json/records/layer/execution-core",
    "label": "Execution Core",
    "markdown": "https://banes-lab.com/records/layer/execution-core.md",
    "ref": "layer:execution-core"
  },
  "name": "Forward-Only Processing",
  "ref": "architecture:forward-only-processing",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-single-pass-processing",
          "json": "https://banes-lab.com/json/records/architecture/single-pass-processing",
          "label": "Single-Pass Processing",
          "markdown": "https://banes-lab.com/records/architecture/single-pass-processing.md",
          "ref": "architecture:single-pass-processing"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-streaming-parsers",
          "json": "https://banes-lab.com/json/records/lexicon/streaming-parsers",
          "label": "Streaming Parsers",
          "markdown": "https://banes-lab.com/records/lexicon/streaming-parsers.md",
          "ref": "lexicon:streaming-parsers"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-complex-grammar-global-state",
          "json": "https://banes-lab.com/json/records/lexicon/complex-grammar-global-state",
          "label": "Complex Grammar/Global State",
          "markdown": "https://banes-lab.com/records/lexicon/complex-grammar-global-state.md",
          "ref": "lexicon:complex-grammar-global-state"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-backtracking-algorithm",
          "json": "https://banes-lab.com/json/records/lexicon/backtracking-algorithm",
          "label": "Backtracking Algorithm",
          "markdown": "https://banes-lab.com/records/lexicon/backtracking-algorithm.md",
          "ref": "lexicon:backtracking-algorithm"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-complex-grammar-global-state-forward-only-processing",
          "json": "https://banes-lab.com/json/records/tension/complex-grammar-global-state-forward-only-processing",
          "label": "Forward-Only Processing / Complex Grammar/Global State",
          "markdown": "https://banes-lab.com/records/tension/complex-grammar-global-state-forward-only-processing.md",
          "ref": "tension:complex-grammar-global-state-forward-only-processing"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#tension-backtracking-algorithm-forward-only-processing",
          "json": "https://banes-lab.com/json/records/tension/backtracking-algorithm-forward-only-processing",
          "label": "Forward-Only Processing / Backtracking Algorithm",
          "markdown": "https://banes-lab.com/records/tension/backtracking-algorithm-forward-only-processing.md",
          "ref": "tension:backtracking-algorithm-forward-only-processing"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-look-back-buffering",
          "json": "https://banes-lab.com/json/records/lexicon/look-back-buffering",
          "label": "Look-Back Buffering",
          "markdown": "https://banes-lab.com/records/lexicon/look-back-buffering.md",
          "ref": "lexicon:look-back-buffering"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-windowing",
          "json": "https://banes-lab.com/json/records/architecture/windowing",
          "label": "Windowing",
          "markdown": "https://banes-lab.com/records/architecture/windowing.md",
          "ref": "architecture:windowing"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-tolerant-reader",
          "json": "https://banes-lab.com/json/records/lexicon/tolerant-reader",
          "label": "Tolerant Reader",
          "markdown": "https://banes-lab.com/records/lexicon/tolerant-reader.md",
          "ref": "lexicon:tolerant-reader"
        }
      ],
      "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-streaming-pipeline-dataflow-processing",
          "json": "https://banes-lab.com/json/records/architecture-category/streaming-pipeline-dataflow-processing",
          "label": "Streaming / Pipeline / Dataflow Processing",
          "markdown": "https://banes-lab.com/records/architecture-category/streaming-pipeline-dataflow-processing.md",
          "ref": "architecture-category:streaming-pipeline-dataflow-processing"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-streaming-pipeline-dataflow-processing",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-streaming-pipeline-dataflow-processing",
          "label": "Streaming / Pipeline / Dataflow Processing",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-streaming-pipeline-dataflow-processing.md",
          "ref": "chapter:/ontology#architecture-category-streaming-pipeline-dataflow-processing"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-contracts-interfaces-compatibility",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-contracts-interfaces-compatibility",
          "label": "Contracts / Interfaces / Compatibility",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-contracts-interfaces-compatibility.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-contracts-interfaces-compatibility"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-streaming-pipeline-dataflow-processing",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-streaming-pipeline-dataflow-processing",
          "label": "Streaming / Pipeline / Dataflow Processing",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-streaming-pipeline-dataflow-processing.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-streaming-pipeline-dataflow-processing"
        },
        {
          "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 stream is read once in order, keeping only rolling state, so no decision ever needs to revisit earlier input.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-dataflow-architecture",
      "json": "https://banes-lab.com/json/records/architecture/dataflow-architecture",
      "label": "Dataflow Architecture",
      "markdown": "https://banes-lab.com/records/architecture/dataflow-architecture.md",
      "ref": "architecture:dataflow-architecture"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-sequential-access",
      "json": "https://banes-lab.com/json/records/architecture/sequential-access",
      "label": "Sequential Access",
      "markdown": "https://banes-lab.com/records/architecture/sequential-access.md",
      "ref": "architecture:sequential-access"
    }
  },
  "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": [
    "No Backtracking Requirement"
  ],
  "exemplar": {
    "after": "for await (const foo of fooStream) {\n  await processFoo(foo);\n}",
    "before": "const cursor = fooStream.cursor();\ncursor.next();\ncursor.previous();\ncursor.seek(0);",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "stream",
    "parser",
    "iterator"
  ],
  "severity": "contextual"
}
