• 请不要在回答技术问题时复制粘贴 AI 生成的内容
w4n9hu1
V2EX  ›  程序员

微服务架构下 MDM(主数据管理)和业务表数据有什么最佳实践

  •  
  •   w4n9hu1 · Jul 11, 2022 · 1465 views
    This topic created in 1418 days ago, the information mentioned may be changed or developed.

    比如存在 2 个微服务,MDM 和 Order 。

    MDM 中维护了仓库,会员,运输商,等数据。

    Order 中的业务表如何维护基础信息?

    1. 存 Id ,Code 和 Name, n 个关联对象,就会有 3n 个列
    2. 只存 Id, 查询时再 call MDM 去做关联
    3. CQRS, 感觉没必要上
    4. shared-database,或者走表订阅,和 MDM 共享 db 感觉有点怪

    大公司一般如何处理这种问题?

    2 replies    2022-07-12 11:58:30 +08:00
    nothingistrue
        1
    nothingistrue  
       Jul 12, 2022
    关键词:子域、限界上下文、值对象、最终一致性。
    w4n9hu1
        2
    w4n9hu1  
    OP
       Jul 12, 2022
    @nothingistrue 所以就这种场景,大厂一般怎么落地这些概念呢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1011 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:24 · PVG 07:24 · LAX 16:24 · JFK 19:24
    ♥ Do have faith in what you're doing.