尽管一直强调 领域驱动设计(Domain-Driven Design)的架构设计与业务结合;但细化完架构后,结合细化后的技术特点,可以进行一些领域划分上的调整。 例如,从横向角度审视WMS的各个业务领域,在每个领域的Infrastructure层都可能存在大量可共用的部分;因此,考虑单独划分出一个特殊的公共领域(Common Domain),该领域仅只有Infrastruc...
ABack office Application, built with Angular UI (that uses REST APIs). This application used by office workers of the company to manage the system (like editing product descriptions) AMobile Applicationthat has much simpler UI compared to the Public Web Site. It may communicate to the server v...
用户接口层,将系统提供的功能通过不同方式暴露出去,供最终用户或其他系统使用。rest api,dubbo接口、UI等 上下结构分层视图 上图蓝色线体现了各层之间的调用关系,各层的调用并不会严格的经过每一层。 图中所示一个调用从用户接口层直接调用了基础设施层,这种情况一般是,查数据给外部系统使用,因为不会对业务数据做...
Syncing Domain Services with REST Wrap-Up Modules General Overview Leverage Modules in PHP First-Level Namespacing PEAR-Style Namespacing PSR-0 and PSR-4 Namespacing Bounded Contexts and Applications Structuring Code in Modules Design Guidelines Modules in the Infrastructure Layer Mixing Different Technol...
我第一次接触 DDD 应该是 2012 年,当时除了大型互联网公司,基本上商业应用都还处于单机的时代,服务化的架构还局限于单机 +LB 用 MVC 提供 Rest 接口供外部调用,或者用 SOAP 或 WebServices 做 RPC 调用,但其实更多局限于对外部依赖的协议。让我关注到 DDD 思想的是一个叫Anti-Corruption Layer(防腐层)的概念...
As you can see, it doesn't matter if you use REST or GraphQL, the only thing that changes is user-facing API layer (interface-adapters). All the application Core stays the same since it doesn't depend on technology you are using. Example files: create-user.graphql-resolver.ts DTOs ...
所以 03 年 Eric Evans 的 Domain Driven Design 一书,以及后续 Vaughn Vernon 的 Implementing DDD , Uncle Bob 的 Clean Architecture 等书,真正的从业务的角度出发,为全世界绝大部分做纯业务的开发提供了一整套的架构思路。 前言 由于DDD 不是一套框架,而是一种架构思想,所以在代码层面缺乏了足够的约束,导致...
这么说来API的设计实际上跟领域模型能力的设计有千丝万缕的关系,我决定用航空公司的卖票业务来举例说明。 业务需求: 一个叫做RestAirline的航空公司提供在线机票出售业务,用户可以按照搜索条件搜索到所有可用的航班(trip) 当乘客选中一条可用的航班(trip)就开始了整个预定(booking)流程...
Share and expand upon the collected knowledge with the rest of the team (Developers and Domain Experts).Since Domain-Driven Design was born, new techniques for improving the process of building the Ubiquitous Language have emerged. The most important one, which is used regularly now, is Event ...
我第一次接触 DDD 应该是 2012 年,当时除了大型互联网公司,基本上商业应用都还处于单机的时代,服务化的架构还局限于单机 +LB 用 MVC 提供 Rest 接口供外部调用,或者用 SOAP 或 WebServices 做 RPC 调用,但其实更多局限于对外部依赖的协议。让我关注到 DDD 思想的是一个叫 Anti-Corruption Layer(防腐层)的概...