10 个常用的软件架构模式
你是否曾经思考过如何设计大型的企业级系统?在决定启动软件开发之前,首要的是选择恰当的架构来指引系统的功能及质量属性设计。因此在将软件架构应用于设计之前,必需要了解常用的架构模式。 什么是架构模式? Wikipedia 的解释: 在软件架构中,架构模式是对特定环境下常见问题的通用且可重用的解决方案。架构模式与软件设计模式很相似,但架构模式的层次更高,且外延更大。 这篇文章将简述常见的 10 种架构模式的概念、用法以及其优缺点。 分层模式(Layered pattern) 客户端/服务器模式(Client-server pattern) 主/从模式(Master-slave pattern) 管道/过滤器模式(Pipe-filter pattern) 代理模式(Broker pattern) 对等模式(Peer-to-peer pattern) 事件总线模式(Event-bus pattern) 模型/视图/控制器(MVC)模式(Model-view-controller pattern) 黑板模式(Blackboard pattern) 解析器模式(Interpreter pattern...