What's the difference between Architectural Patterns and Architectural Styles?

前端 未结 12 1773
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 04:16

In Software Architecture - Foundations, Theory and Practice, I can find definitions for both. The problem is that I don\'t get what each one of them means in plain Engl

12条回答
  •  渐次进展
    2021-01-30 04:33

    Architectural Style is abstract i.e. conceptual.

    +---------------+--------------------------------------------------------+
    |   Category    |                  Architecture styles                   |
    +---------------+--------------------------------------------------------+
    | Communication | SOA, ROA, Message Bus                                  |
    | Deployment    | Client/Server                                          |
    | Domain        | Domain Driven Design,Monolithic application            |
    | Structure     | Component-Based, Object-Oriented, Layered, Plug-ins    |
    +---------------+--------------------------------------------------------+
    

    An Architectural Pattern is concrete i.e. implementation of an Architectural Style.

    • For example: 3-tier, N-tier, MVC, REST

    A Design pattern is a general reusable solution to a commonly occurring problem in software design at architectural level.

    • For example: Factory, Singleton, Prototype.

    Analogy: Temples architecture style for different religions:

提交回复
热议问题