Architectural styles and patterns

Hand-drawn two rows of hatched terracotta arches of varying height, width and nesting over diagonal sand, linen, umber and moss hatching.

An architectural style is a named, reusable way of organising a software system: a vocabulary of components and connectors, plus rules on how they may be combined (Garlan & Shaw, 1994). Styles and the closely related architectural patterns, such as Layers, Pipes and Filters or Model-View-Controller, are the field’s main stock of ready-made designs.

Three questions about them are disputed. Sources do not agree on how to classify styles, or even on how a style differs from a pattern (Fielding, 1999; Giesecke & Hasselbring, 2006). Software patterns borrowed their form from the architect Christopher Alexander, who doubted they kept his aims (Coplien, 1996; Alexander, 1999). And the quality benefits attributed to patterns rest mostly on what their authors claim, while the few measurements are mixed (Farshidi et al., 2020; Khomh & Guéhéneuc, 2008).

What a style is

A style fixes the kinds of parts a system may have and the ways they may connect. Garlan and Shaw defined it as a vocabulary of components (the computing elements) and connectors (the interactions between them), with constraints on how they combine. In their case study, different styles made a given set of problems easier or harder to solve (Garlan & Shaw, 1994). Software architecture covers the wider field.

Styles are described in pure forms, but real systems combine several styles (Shaw & Clements, 1997). Giesecke and Hasselbring report that critics call the general-purpose styles impossible to apply to a system as a whole (Giesecke & Hasselbring, 2006).

Styles versus patterns

The line between a style and a pattern is not drawn consistently, and some authors treat the two terms as nearly the same (Giesecke & Hasselbring, 2006). The first POSA book, a pattern catalogue, lists Layers, Pipes and Filters, Blackboard, Broker, MVC, PAC, Microkernel and Reflection as architectural patterns (Giesecke & Hasselbring, 2006).

Some in the pattern community, citing the POSA authors, hold that patterns subsume styles. Giesecke and Hasselbring accept this only to a degree and for one way of using styles. They add that it contradicts the original idea of a style as a principle for splitting a system into parts (Giesecke & Hasselbring, 2006). The two also differ in reach: the original styles are generic and abstract, while recent pattern publications target specific platforms (Giesecke & Hasselbring, 2006). Microservices, a style that splits a system into small, separately deployed services, has its own article: Microservices and monoliths.

Taxonomies and catalogues

No classification of styles has become standard, and each proposed scheme has drawn criticism. In 1994, Garlan and Shaw wrote that a repertoire of styles could be identified but that no well-accepted taxonomy existed yet (Garlan & Shaw, 1994). The later schemes classify different things along different axes.

SchemeWhat it classifies, and howCriticism
Shaw and Clements (1997)Styles, on two axes: control issues and data issuesMixes essential and incidental differences; does not help a designer find a fitting style or say how styles combine
Buschmann and Meunier (1995)Patterns, by granularity (architectural frameworks, design patterns, idioms), functionality and structureCovers only two of the styles Fielding describes
Giesecke and Hasselbring (2006)How styles are used, in five modes, not the styles themselvesDoes not classify styles

Shaw and Clements built their table because styles were often defined informally and idiosyncratically. They called it incomplete, and expected readers to disagree with their style names, since people use those names differently (Shaw & Clements, 1997). Fielding criticised it for mixing essential and incidental differences, for not helping designers choose, and for saying nothing about combining styles (Fielding, 1999).

Buschmann and Meunier sorted patterns by granularity, functionality and structural principles. Fielding found that this scheme covers only two of the styles he describes (Fielding, 1999).

Giesecke and Hasselbring took another route and classified how styles are used. They named five usages: ad hoc, platform-oriented, customised, pre-modelling, and post-documentation or analysis. Since any style can be used in several modes, their scheme does not classify the styles themselves (Giesecke & Hasselbring, 2006).

Origins in Alexander’s pattern language

Software patterns descend from the work of Christopher Alexander, a building architect who used patterns to record successful design practice (The Hillside Group, 2025). Software engineering researchers noticed his idea in the late 1980s and early 1990s, while looking for ways to reuse design knowledge (Dearden & Finlay, 2006). In 1987, Beck and Cunningham proposed concepts adapted from Alexander and wrote a first small pattern language, for designing user interfaces (Beck & Cunningham, 1987; The Hillside Group, 2025).

Coplien calls Alexander the indisputable inspiration for software patterns. The field’s vocabulary of forces, patterns and pattern languages comes from him (Coplien, 1996).

How far software patterns follow Alexander Weak evidence: few or small studies support this

Alexander himself judged that software patterns kept his format but not his deeper aims. His pattern language was meant to be generative: it shows how to build as many arrangements as wanted that satisfy its rules (Coplien, 1996). In a 1996 keynote, he said it also had a moral side, aimed at coherent form, and that he had seen little evidence of either quality in software pattern theory. He saw software patterns mainly as a useful format for sharing design ideas (Alexander, 1999).

Software authors did try to copy generativity. Beck and Cunningham argued that a pattern language helps designers ask and answer the right question at the right time (Dearden & Finlay, 2006). Yet a group of 1990s pattern authors used “generative” to mean “creational”, and Coplien says Alexander’s value system is often lost in the technical side of patterns (Coplien, 1996).

Some software pattern languages also depart from Alexander’s structure. Unlike his original work, they offer alternative patterns for similar problems, each designed for a different context (Dearden & Finlay, 2006).

Do styles and patterns improve quality?

Studies disagree on whether choosing a style or pattern improves quality attributes, the properties such as maintainability, performance or reliability that a design aims for. Pattern catalogues state strengths and weaknesses for each pattern, but little empirical evidence supports the claimed gains, and the measurements that exist found mixed or negative effects (Farshidi et al., 2020; Khomh & Guéhéneuc, 2008; Xiao et al., 2025b). Falessi and colleagues note that progress in the field has come mostly from talented people and industrial experience, and call for systematic evidence rather than promotional anecdotes (Falessi et al., 2010).

Claimed effects

The largest mapping of patterns to quality attributes is built from what authors claim, not from measurement. One systematic review drew on 232 studies to link 29 architectural patterns to 40 quality attributes. It derived each effect from the strengths and liabilities the studies stated (Farshidi et al., 2020). Twelve experienced practitioners confirmed that this knowledge helps them select patterns (Farshidi et al., 2020).

Other reviewers found the link poorly defined. A 2016 review found no systematically built reference on how patterns and quality attributes relate, and no study in its pilot sample discussed their interaction explicitly. How combinations of patterns affect quality together is little known (Me et al., 2016).

Part of the problem is how patterns enter catalogues. A pattern is usually written down once it has been seen in practice at least three times, a convenience sample that often gives too little evidence that it works. Many patterns have not been widely checked against industry practice, so they remain interesting theories (Vale et al., 2022). In interviews about 14 microservice patterns, practitioners reported many trade-offs that matched the documentation. They also reported gains and pains it did not mention (Vale et al., 2022).

Measured effects

The few controlled and case studies each cover one system, and their results point in different directions. For object-oriented design patterns, Khomh and Guéhéneuc found several quality attributes harmed in practice, contrary to popular belief. They add that the claimed gains in reusability, expandability and understandability have little empirical support (Khomh & Guéhéneuc, 2008).

In a controlled experiment on one microservice system, six tactics and patterns had no consistent effect on maintainability: three harmed it, one helped and two made no difference. Their effect on response time depended on the technique and the load, from a rise of up to 25.9% to a fall of up to 72.5% (Xiao et al., 2025b). Most of the techniques that saved energy did so at the cost of another quality attribute, usually maintainability (Xiao et al., 2025b).

The style of a whole system shows the same dependence on context. When one layered web application was migrated to microservices, the monolith used less energy unless the microservice version was replicated optimally (Berry et al., 2024). In a case study of one Ericsson system, an analysis judged that the Layers pattern promoted maintainability and Model-View-Controller did not, by the analysis method’s own criteria (Hoffman, 2001).

The MVC experiment Weak evidence: few or small studies support this

One controlled experiment found that imposing the MVC pattern cost effort rather than saving it, but its authors doubt its own design. Fifty Master’s students built and maintained an application. Those assigned an implicit architecture, rather than MVC, did better on average in both development and maintenance effort (Falessi et al., 2010).

The authors could not check whether the MVC group really applied the pattern, so the split between groups may be unreliable. They also note that design patterns do not pay off in toy applications, and their 20,000-line application was low in complexity (Falessi et al., 2010).

Further reading

  • Garlan and Shaw, “An introduction to software architecture” (Garlan & Shaw, 1994): the founding definition of a style as components, connectors and constraints, with a survey of common styles.
  • Shaw and Clements, “A field guide to boxology” (Shaw & Clements, 1997): the classic two-axis classification of styles, with its authors’ own caveats.
  • Giesecke and Hasselbring, “Taxonomy of architectural style usage” (Giesecke & Hasselbring, 2006): a classification by how styles are used, and a clear account of the style-versus-pattern confusion.
  • Alexander, “The origins of pattern theory” (Alexander, 1999): the architect’s own assessment of what software took from his pattern language and what it left out.
  • Farshidi and colleagues, “Capturing software architecture knowledge for pattern-driven design” (Farshidi et al., 2020): a review mapping 29 patterns to 40 quality attributes from stated strengths and liabilities.
  • Falessi and colleagues, “Applying empirical software engineering to software architecture” (Falessi et al., 2010): why controlled experiments on architecture are hard, illustrated by the MVC experiment.

Known gaps

What this article cannot tell you yet.

  1. Whether later studies have tested the pattern-to-quality mapping of Farshidi and colleagues by measurement was not researched.
  2. The original report of the MVC controlled experiment (Cantone and colleagues, 2008) is not available online; its effort figures and significance tests are known only through the experimenters’ later account, and no replication of it was found.
  3. No controlled experiment specific to the layered style was found.
  4. The taxonomy in the textbook by Taylor and colleagues and the POSA catalogues themselves were not read, and no survey comparing all classification schemes was found.
  5. A controlled experiment by Bogner and colleagues on service-based patterns and evolvability could not be checked against its full text, so it is left out.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 17 references