Skip to content
Blueprint Catalog

    ↑↓ move · Enter open · Esc close

    05 — Library · 63 patterns

    Patterns

    Design patterns an architect reaches for, each with when to use it, a drawing, and the capabilities it helps build.

    Patterns

    Showing 9 of 63 patterns

    • DP-580

      Active Record

      Application Structure

      Make each class a mirror of one table, with fields named like its columns and find and save methods of its own, so simple applications get persistence with almost no ceremony.

      When · When objects map one-to-one to tables and the logic is light; as rules grow, mixing them with persistence makes both harder to test, which is the point to move to a data mapper.

      Reference ↗related DP-570DP-540

    • DP-220

      Aggregate

      Domain Modeling

      A cluster of domain objects treated as one unit for changes, with a single root that enforces its invariants, so consistency rules live in one place and transactions have a natural size.

      When · When business rules span several objects that must change together; costs careful boundary sizing, since aggregates that are too large serialize everything and too small cannot enforce the rule.

      Reference ↗related DP-210DP-230DP-260

    • DP-200

      Anti-Corruption Layer

      Domain Modeling

      A translation layer between your model and an external or legacy system's model, so foreign concepts and quirks are converted at the boundary instead of leaking into your core.

      When · Integrating with a system whose model you do not control and do not want to inherit; costs a mapping layer that must evolve with both sides.

      Reference ↗related DP-190DP-210

    • DP-110

      API Gateway

      Integration

      A single entry point in front of many backend services that handles routing, authentication, rate limits and protocol translation, so each service does not reimplement the edge.

      When · As soon as more than a handful of services face external clients; costs a component that can become a bottleneck or a dumping ground for business logic if left unguarded.

      Reference ↗related DP-040DP-120DP-360

    • DP-500

      Architecture Decision Records

      Organization

      Capture each significant decision as a short, dated document stating the context, the options, the choice and its consequences, kept next to the code so the reasoning survives the people who made it.

      When · Every project with more than one architect or a lifespan over a year; costs a few paragraphs per decision and the habit of writing them before the decision calcifies.

      Reference ↗related DP-510DP-490

    • DP-120

      Backend for Frontend

      Integration

      Give each client type (web, mobile, partner) its own thin backend that shapes and aggregates data for that experience, instead of one general-purpose API that serves everyone poorly.

      When · When clients differ enough that one API shape forces chatty calls or over-fetching; costs one more deployable per client and duplicated aggregation logic to keep honest.

      Reference ↗related DP-110DP-150

    • DP-370

      Blue-Green Deployment

      Deployment

      Run two identical production environments, deploy to the idle one, verify it, then switch traffic over in one move, keeping the old environment ready for an instant rollback.

      When · Releases where downtime or a slow rollback is unacceptable; costs double the infrastructure during the switch and a plan for database changes that both versions must tolerate.

      Reference ↗related DP-380DP-400

    • DP-210

      Bounded Context

      Domain Modeling

      Draw an explicit boundary inside which a domain model and its language are consistent, and accept that the same word ("customer", "order") can legitimately mean different things in different contexts.

      When · When one enterprise-wide model keeps collapsing under conflicting definitions; costs explicit contracts and translation between contexts rather than one shared schema.

      Reference ↗related DP-200DP-220DP-240