The Gateway Pattern

archetype Architecture and BuildingSoftware Abstraction

Categories: software-engineering

What It Brings

A gateway is the controlled point of entry to a bounded space. City gates, temple gates, garden gates — the gate marks the boundary between inside and outside, between yours and theirs. Fowler’s Gateway pattern maps this onto system integration: a Gateway object wraps access to an external system or resource, providing a dedicated entry point that translates between internal and external representations.

Key structural parallels:

Where It Breaks

Expressions

Origin Story

The Gateway pattern was named by Martin Fowler in Patterns of Enterprise Application Architecture (2002) as an object that encapsulates access to an external system or resource. Fowler distinguished it from Facade (which simplifies an internal subsystem) by its orientation: a Gateway faces outward, wrapping something foreign. The architectural metaphor was a deliberate choice to emphasize the boundary-crossing nature of the pattern. The concept has since expanded enormously — API gateways, payment gateways, and cloud gateways all borrow the same architectural image of a controlled passage between territories, though they operate at vastly different scales.

References

Related Mappings