The Registry Pattern

archetype GovernanceSoftware Abstraction

Categories: software-engineering

What It Brings

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:

Where It Breaks

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 Mappings