Skip to content

Repository or Adapter

Stable ID: decision.repository-vs-adapter
Kind: decision-record
Status: stable
Source: skill/references/decisions/repository-vs-adapter.md

Purpose

Choose a repository for domain-oriented persistence and an adapter for broader protocol translation.

Use when

  • A design choice matches the question described by this decision record.

Avoid when

  • The documented alternatives do not match the actual source of variation or ownership.

Applicability

  • Languages: any, python, q-kdbplus, cpp, rust, dart-flutter, typescript
  • Related entries: pattern.repository, pattern.adapter, component.data-access