Facade Design Pattern Explained

Facade provides a simplified, unified interface to a larger, more complex body of code, like a set of subsystems.

Published November 12, 2026

The Facade pattern provides one simple interface to a complex subsystem, so callers do not need to know about the many classes behind it.

The concept

A facade class offers a few high-level methods and coordinates the detailed calls inside. The subsystem stays accessible but most code uses the facade.

It reduces coupling and makes a library easier to use; Laravel's 'facades' are a related idea (static-looking access to services).

One door to many parts

one callcoordinatesClientcheckout()OrderFacadesimple APIStock, Pay, Mailsubsystems
Client calls the facade only.

Practical examples

Facade class

class OrderFacade {
  constructor(stock, pay, mail) { Object.assign(this, { stock, pay, mail }) }
  async checkout(cart, card) {
    await this.stock.reserve(cart)
    await this.pay.charge(card, cart.total)
    await this.mail.receipt(cart)
  }
}

Client code stays simple

await orders.checkout(cart, card)

Everyday facade

fetch(url)   // hides sockets, TLS, HTTP framing

Common mistakes

  • Letting the facade grow into a god object.
  • Hiding the subsystem so completely that advanced use is impossible.
  • Putting business logic in the facade.

Key takeaways

  • Simple front for a complex subsystem.
  • Reduces coupling.
  • Keep it thin.

FAQ

Facade vs Adapter?

Facade simplifies; Adapter converts interfaces.

Is a service class a facade?

Often yes, when it orchestrates several lower-level components.

More General articles