官术网_书友最值得收藏!

Component patterns

Another strategy for decomposing our components with proper boundaries is based on applying the component patterns. Chapter 3, Foundation Patterns, will cover the patterns that provide the mechanisms used by all components, whereas Chapter 4, Boundary Patterns, and Chapter 5, Control Patterns both contain patterns that pertain to specific flavors of components. The boundary patterns, such as Backend For Frontend and External Service Gateway, interact with external entities at the edge of the system, while the control patterns, such as Event Orchestration, deal with mediating, choreographing, and orchestrating the interactions between components.

Continuing our bounded context example, the Customer Self-Service and Catalog contexts focus on interacting with different user groups. As such, they would each follow the Backend For Frontend pattern. Let's say that SalesForce and ZenDesk fulfill the Sales Contexts and Support Contexts, respectively. This would indicate that each should have an External Service Gateway component that acts as an anti-corruption layer to adapt and integrate those systems. All inter-component communication and collaboration is achieved using events. When there are relatively few events and the business processes are straightforward, it is reasonable for the components to apply the Event Collaboration pattern and know about the event types of the other components specifically. However, as these processes become more complicated it is good to add in components in the middle that act as mediators, following the Event Orchestration pattern, to maintain loose coupling between the participating components.

主站蜘蛛池模板: 陕西省| 朝阳市| 通道| 玉屏| 闸北区| 陆丰市| 黄陵县| 克东县| 山丹县| 铜陵市| 上饶市| 微山县| 丹棱县| 台北市| 高青县| 治县。| 泸水县| 唐海县| 寿阳县| 利辛县| 景德镇市| 永仁县| 平安县| 阳山县| 老河口市| 南安市| 新邵县| 江川县| 景宁| 靖边县| 伊吾县| 曲麻莱县| 曲水县| 常山县| 乌兰县| 新建县| 柞水县| 乐陵市| 临夏市| 云梦县| 台湾省|