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

前端 未结 12 1636
被撕碎了的回忆
被撕碎了的回忆 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:46

    An Architectural Pattern is a way of solving a recurring architectural problem. MVC, for instance, solves the problem of separating the UI from the model. Sensor-Controller-Actuator, is a pattern that will help you with the problem of actuating in face of several input senses.

    An Architectural Style, on the other hand, is just a name given to a recurrent architectural design. Contrary to a pattern, it doesn't exist to "solve" a problem.

    Pipe&filter doesn't solve any specific problem, it's just a way of organizing your code. Client/server, Main program & subroutine and Abstract Data Types / OO, the same.

    Also, a single architecture can contain several architectural styles, and each architectural style can make use of several architectural patterns.

提交回复
热议问题