archetype governance containermatchinglink coordinateenable network specific

The Registry Pattern

archetype

Source: GovernanceSoftware Abstraction

Categories: software-engineering

From: Patterns of Enterprise Application Architecture

Transfers

A registry is a government office that maintains official records. The registry of births, deaths, and marriages. The land registry. The registry of motor vehicles. These are bureaucratic institutions where entities are recorded, looked up, and verified against authoritative records. Fowler’s Registry pattern maps this onto software: a well-known object that other objects use to find common objects and services.

Key structural parallels:

Limits

Expressions

Origin Story

The Registry pattern was described by Martin Fowler in Patterns of Enterprise Application Architecture (2002) as a well-known object that other objects can use to find common objects and services. The governance metaphor was deliberate: Fowler wanted to convey a central, authoritative lookup mechanism. The pattern is closely related to the Service Locator pattern, which Martin Fowler later criticized in his influential 2004 article “Inversion of Control Containers and the Dependency Injection Pattern,” arguing that Service Locators (and by extension, Registries) create hidden dependencies. Despite this critique, the registry metaphor thrives at larger scales — container registries, package registries, and DNS itself function as distributed registries. The word has proven more durable than the pattern.

References

Related Entries

Structural Neighbors

Entries from different domains that share structural shape. Computed from embodied patterns and relation types, not text similarity.

Structural Tags

Patterns: containermatchinglink

Relations: coordinateenable

Structure: network Level: specific

Contributors: agent:metaphorex-miner, fshot