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

How to do it...

Deciding on how to define bounded contexts within a system can be a rewarding endeavor. The process itself encourages teams to have many interesting discussions about the models in a system and the various interactions that must happen between various systems:

  1. Before a team can start to define the bounded contexts it works with, it should first start listing the models that are owned by the parts of the system it works on. For example, the media team will obviously own the Attachment model, but it will also need to have information about users, and messages. The Attachment model may be entirely maintained within the context of the media teams services, but the others will have to have a well-defined bounded context that can be communicated to other teams if necessary.
  2. Once a team has identified potentially shared models, it's a good idea to have a discussion with other teams that use similar models or the same model.
  3. In those discussions, hammer out the boundaries of the model and decide whether it makes sense to share a model implementation (which in a microservice world would necessitate a service-to-service call) or go their separate ways and develop and maintain separate model implementations. If the choice is made to develop separate model implementations, it'll become important to clearly define the bounded context within which the model applies.
  4. The team should document clear boundaries in terms of teams, specific parts of the application, or specific code bases that should make use of the model.
主站蜘蛛池模板: 贵阳市| 府谷县| 苏州市| 明水县| 清水河县| 东山县| 莆田市| 武功县| 专栏| 广河县| 鹤山市| 外汇| 南丹县| 安泽县| 定日县| 平顶山市| 砀山县| 共和县| 阳新县| 依安县| 梁河县| 邹平县| 页游| 梅州市| 滦平县| 大余县| 滨州市| 民县| 甘南县| 涟水县| 咸宁市| 乃东县| 高雄县| 岱山县| 瑞金市| 谷城县| 中牟县| 磴口县| 都安| 宣汉县| 成都市|