What's the difference between design patterns and architectural patterns?

前端 未结 5 950
遥遥无期
遥遥无期 2020-11-29 14:28

When we read about design patterns on the internet we note that there are 3 categories:

  • Creational
  • Structural
  • Behavioral
5条回答
  •  孤独总比滥情好
    2020-11-29 15:03

    Architectural elements tend towards collections of classes or modules, generally represented as boxes. Diagrams about architecture represent the loftiest level looking down, whereas class diagrams are at the most atomic level. The purpose of architecture patterns is to understand how the major parts of the system fit together, how messages and data flow through the system, and other structural concerns. Architecture patterns utilize a variety of component types, each typically composed of successively smaller modules. Each component has a responsibility within the architecture Design patterns are low level or class level design patterns for smaller particles of applications.

    For more information: https://www.oreilly.com/ideas/contrasting-architecture-patterns-with-design-patterns

提交回复
热议问题