{
  "code": "ISP",
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-interface-segregation",
  "id": "interface-segregation",
  "kind": "principle",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-structural-core",
    "json": "https://banes-lab.com/json/records/layer/structural-core",
    "label": "Structural Core",
    "markdown": "https://banes-lab.com/records/layer/structural-core.md",
    "ref": "layer:structural-core"
  },
  "name": "Interface Segregation Principle",
  "ref": "architecture:interface-segregation",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-role-specific-interfaces",
          "json": "https://banes-lab.com/json/records/lexicon/role-specific-interfaces",
          "label": "Role-Specific Interfaces",
          "markdown": "https://banes-lab.com/records/lexicon/role-specific-interfaces.md",
          "ref": "lexicon:role-specific-interfaces"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-single-responsibility",
          "json": "https://banes-lab.com/json/records/architecture/single-responsibility",
          "label": "Single Responsibility Principle (SRP)",
          "markdown": "https://banes-lab.com/records/architecture/single-responsibility.md",
          "ref": "architecture:single-responsibility"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-low-coupling",
          "json": "https://banes-lab.com/json/records/architecture/low-coupling",
          "label": "Low Coupling",
          "markdown": "https://banes-lab.com/records/architecture/low-coupling.md",
          "ref": "architecture:low-coupling"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-consumer-specific-contracts",
          "json": "https://banes-lab.com/json/records/lexicon/consumer-specific-contracts",
          "label": "Consumer-Specific Contracts",
          "markdown": "https://banes-lab.com/records/lexicon/consumer-specific-contracts.md",
          "ref": "lexicon:consumer-specific-contracts"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-fat-interface",
          "json": "https://banes-lab.com/json/records/lexicon/fat-interface",
          "label": "Fat Interface",
          "markdown": "https://banes-lab.com/records/lexicon/fat-interface.md",
          "ref": "lexicon:fat-interface"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-repository-dump",
          "json": "https://banes-lab.com/json/records/architecture/repository-dump",
          "label": "Repository Dump",
          "markdown": "https://banes-lab.com/records/architecture/repository-dump.md",
          "ref": "architecture:repository-dump"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-interface-proliferation",
          "json": "https://banes-lab.com/json/records/lexicon/interface-proliferation",
          "label": "Interface Proliferation",
          "markdown": "https://banes-lab.com/records/lexicon/interface-proliferation.md",
          "ref": "lexicon:interface-proliferation"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-interface-proliferation-interface-segregation-principle-isp",
          "json": "https://banes-lab.com/json/records/tension/interface-proliferation-interface-segregation-principle-isp",
          "label": "Interface Segregation Principle (ISP) / Interface Proliferation",
          "markdown": "https://banes-lab.com/records/tension/interface-proliferation-interface-segregation-principle-isp.md",
          "ref": "tension:interface-proliferation-interface-segregation-principle-isp"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-fat-interface",
          "json": "https://banes-lab.com/json/records/lexicon/fat-interface",
          "label": "Fat Interface",
          "markdown": "https://banes-lab.com/records/lexicon/fat-interface.md",
          "ref": "lexicon:fat-interface"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-split-interface",
          "json": "https://banes-lab.com/json/records/lexicon/split-interface",
          "label": "Split Interface",
          "markdown": "https://banes-lab.com/records/lexicon/split-interface.md",
          "ref": "lexicon:split-interface"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-extract-role-interface",
          "json": "https://banes-lab.com/json/records/lexicon/extract-role-interface",
          "label": "Extract Role Interface",
          "markdown": "https://banes-lab.com/records/lexicon/extract-role-interface.md",
          "ref": "lexicon:extract-role-interface"
        }
      ],
      "relation": "refactored-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-mandatory",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-mandatory",
          "label": "mandatory",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-mandatory.md",
          "ref": "vocabulary:severity-mandatory"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-solid-object-oriented-design",
          "json": "https://banes-lab.com/json/records/architecture-category/solid-object-oriented-design",
          "label": "SOLID / Object-Oriented Design",
          "markdown": "https://banes-lab.com/records/architecture-category/solid-object-oriented-design.md",
          "ref": "architecture-category:solid-object-oriented-design"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/software-architecture/principles#the-structural-domain",
          "json": "https://banes-lab.com/json/software-architecture/principles/the-structural-domain",
          "label": "The structural domain",
          "markdown": "https://banes-lab.com/software-architecture/principles/the-structural-domain.md",
          "ref": "chapter:/software-architecture/principles#the-structural-domain"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-anti-patterns",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-anti-patterns",
          "label": "Anti-patterns",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md",
          "ref": "chapter:/ontology#architecture-category-anti-patterns"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-core-modular-design",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-core-modular-design",
          "label": "Core Modular Design",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-core-modular-design.md",
          "ref": "chapter:/ontology#architecture-category-core-modular-design"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-solid-object-oriented-design",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-solid-object-oriented-design",
          "label": "SOLID / Object-Oriented Design",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-solid-object-oriented-design.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-solid-object-oriented-design"
        },
        {
          "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 rule that a client depends on an interface holding only the methods it uses.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-dependency-inversion",
      "json": "https://banes-lab.com/json/records/architecture/dependency-inversion",
      "label": "Dependency Inversion Principle (DIP)",
      "markdown": "https://banes-lab.com/records/architecture/dependency-inversion.md",
      "ref": "architecture:dependency-inversion"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-autonomy",
      "json": "https://banes-lab.com/json/records/architecture/autonomy",
      "label": "Autonomy",
      "markdown": "https://banes-lab.com/records/architecture/autonomy.md",
      "ref": "architecture:autonomy"
    }
  },
  "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": [
    "ISP",
    "Interface Segregation Principle"
  ],
  "exemplar": {
    "after": "interface FooReader { load(id: FooId): Foo; }\ninterface FooWriter { save(foo: Foo): void; }\ninterface FooRemover { delete(id: FooId): void; }\nclass CachedFooReader implements FooReader {\n  load(id: FooId) { return fooCache.get(id)!; }\n}",
    "before": "interface FooWorker {\n  load(id: FooId): Foo;\n  save(foo: Foo): void;\n  delete(id: FooId): void;\n  export(): string;\n}\nclass FooReader implements FooWorker {}",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "interface",
    "service",
    "module"
  ],
  "severity": "mandatory"
}
