Skip to main content

Patterns and Reference Architectures

Guardrails say what is mandatory. Patterns and reference architectures say how problems are usually solved. They are the reusable knowledge of the organization: instead of every team designing the same solution again, teams start from something proven.

Patterns​

A pattern is a proven solution to a recurring problem, described independently of a specific system. It names the problem, the solution and the trade-offs. Examples:

  • Integration: publish-subscribe messaging, transactional outbox, API gateway
  • Data: change data capture, medallion layers in a data lake, data products
  • Resilience: retries with backoff, circuit breaker, bulkhead
  • Multi-tenancy: silo, pool and bridge isolation models

Well-known catalogs are a good starting point:

An organization's own pattern catalog does not need to repeat these. It selects the patterns that the organization actually uses, and adds what is specific: which technology implements the pattern, which platform supports it, and examples from real systems.

Reference architectures​

A reference architecture combines several patterns and technology choices into a blueprint for a whole class of solutions. Where a pattern answers how do we solve this problem?, a reference architecture answers how do we usually build this kind of system? Examples:

  • an event-driven integration between domains, with the event platform, schema registry and conventions for topics and events (see Event-Driven Architecture)
  • a data platform with ingestion, medallion layers and a semantic layer (see Data Lake)
  • a public API, exposed through the API gateway with identity, rate limits and observability (see API Management)
  • a multi-tenant SaaS product (see Multi-Tenancy)

Cloud providers publish many reference architectures, which are useful to compare against your own:

Patterns and reference architectures are recommendations. A team can deviate from them when it has a good reason, and the reason is recorded in the solution design or an ADR. Only what the organization makes mandatory belongs in the guardrails, for example a standard that all public APIs go through the API gateway.

That makes them different from guardrails in another way too: they are allowed to evolve faster. A new team may find a better way to solve a problem, and the reference architecture is updated with it.

From documents to golden paths​

A reference architecture described in a document is helpful. A reference architecture that a team can start from in minutes is much better. The most effective form is a golden path: a template or starter project that implements the reference architecture, with the platform capabilities already wired in. Tools such as Backstage Software Templates create a new service from such a template. See provisioning.

Keep the documentation and the templates in sync. The document explains why the architecture looks the way it does. The template makes it easy to follow.