{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-fan-out-fan-in",
  "id": "fan-out-fan-in",
  "kind": "pattern",
  "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": "Fan-out/Fan-in",
  "ref": "architecture:fan-out-fan-in",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-independent-work-units",
          "json": "https://banes-lab.com/json/records/lexicon/independent-work-units",
          "label": "Independent Work Units",
          "markdown": "https://banes-lab.com/records/lexicon/independent-work-units.md",
          "ref": "lexicon:independent-work-units"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-parallelism",
          "json": "https://banes-lab.com/json/records/architecture/parallelism",
          "label": "Parallelism",
          "markdown": "https://banes-lab.com/records/architecture/parallelism.md",
          "ref": "architecture:parallelism"
        },
        {
          "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": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-parallel-branch-processing",
          "json": "https://banes-lab.com/json/records/lexicon/parallel-branch-processing",
          "label": "Parallel Branch Processing",
          "markdown": "https://banes-lab.com/records/lexicon/parallel-branch-processing.md",
          "ref": "lexicon:parallel-branch-processing"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-result-aggregation",
          "json": "https://banes-lab.com/json/records/lexicon/result-aggregation",
          "label": "Result Aggregation",
          "markdown": "https://banes-lab.com/records/lexicon/result-aggregation.md",
          "ref": "lexicon:result-aggregation"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-coordination-overhead",
          "json": "https://banes-lab.com/json/records/lexicon/coordination-overhead",
          "label": "Coordination Overhead",
          "markdown": "https://banes-lab.com/records/lexicon/coordination-overhead.md",
          "ref": "lexicon:coordination-overhead"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-serial-item-processing",
          "json": "https://banes-lab.com/json/records/lexicon/serial-item-processing",
          "label": "Serial Item Processing",
          "markdown": "https://banes-lab.com/records/lexicon/serial-item-processing.md",
          "ref": "lexicon:serial-item-processing"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-coordination-overhead-fan-out-fan-in",
          "json": "https://banes-lab.com/json/records/tension/coordination-overhead-fan-out-fan-in",
          "label": "Fan-out/Fan-in / Coordination Overhead",
          "markdown": "https://banes-lab.com/records/tension/coordination-overhead-fan-out-fan-in.md",
          "ref": "tension:coordination-overhead-fan-out-fan-in"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#tension-fan-out-fan-in-serial-item-processing",
          "json": "https://banes-lab.com/json/records/tension/fan-out-fan-in-serial-item-processing",
          "label": "Fan-out/Fan-in / Serial Item Processing",
          "markdown": "https://banes-lab.com/records/tension/fan-out-fan-in-serial-item-processing.md",
          "ref": "tension:fan-out-fan-in-serial-item-processing"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-sequential-bottleneck",
          "json": "https://banes-lab.com/json/records/lexicon/sequential-bottleneck",
          "label": "Sequential Bottleneck",
          "markdown": "https://banes-lab.com/records/lexicon/sequential-bottleneck.md",
          "ref": "lexicon:sequential-bottleneck"
        }
      ],
      "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-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/software-architecture/scale#above-one-tier-reduction",
          "json": "https://banes-lab.com/json/software-architecture/scale/above-one-tier-reduction",
          "label": "Above one tier, reduction",
          "markdown": "https://banes-lab.com/software-architecture/scale/above-one-tier-reduction.md",
          "ref": "chapter:/software-architecture/scale#above-one-tier-reduction"
        },
        {
          "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-core-vocabulary",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-core-vocabulary",
          "label": "Core Vocabulary",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-core-vocabulary.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-core-vocabulary"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-quality-attributes",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-quality-attributes",
          "label": "Quality Attributes",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-quality-attributes.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-quality-attributes"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-scalability-performance-optimization",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-scalability-performance-optimization",
          "label": "Scalability / Performance / Optimization",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-scalability-performance-optimization.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-scalability-performance-optimization"
        },
        {
          "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 design pattern that splits work into independent parts processed in parallel, then merges their results.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-batch-vs-stream",
      "json": "https://banes-lab.com/json/records/architecture/batch-vs-stream",
      "label": "Batch-vs-Stream",
      "markdown": "https://banes-lab.com/records/architecture/batch-vs-stream.md",
      "ref": "architecture:batch-vs-stream"
    },
    "previous": {
      "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"
    }
  },
  "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": [
    "Upward Reduction"
  ],
  "exemplar": {
    "after": "const partials = await fanOut(partition(foos), buildPartialFooReport);\nconst report = fanIn(partials, mergeFooReports);",
    "before": "const report = await buildFullFooReport(foos);",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "data processing",
    "parallelism",
    "pipeline"
  ],
  "severity": "contextual"
}
