Structural pattern · Visual logic
Facade Pattern: One Door into a Complex System
Facade offers a small task-oriented interface over a complicated subsystem, reducing the knowledge each caller needs for common workflows.
Callers must coordinate many subsystem objects in the correct sequence just to complete one ordinary task.
Expose a focused high-level operation that orchestrates subsystem details while leaving advanced APIs available when necessary.
- CLIENT requests a complete outcome through one task-oriented method.
- FACADE coordinates validation, ordering, and subsystem interactions.
- SUBSYSTEMS perform specialized work without becoming client concerns.
Common use cases become easier and safer without replacing the underlying subsystem capabilities.
Run it in the real world
A video export facade validates settings, starts rendering, writes metadata, and stores the file while advanced callers can still access lower-level tools.
Go deeper
This is an original explanation and example inspired by Head First Design Patterns. The book covers the complete pattern, design principles, and implementation detail.
Retail links are not affiliate links yet. If that changes, this page will clearly disclose it.