代码之家  ›  专栏  ›  技术社区  ›  k13i

无CQR的活动采购

  •  6
  • k13i  · 技术社区  · 6 年前

    我知道。 CQRS 可以用或不用 event sourcing 但是它在另一方面起作用吗?做 事件溯源 没有 CQRS 有道理?如果是这样,应该如何实施?

    4 回复  |  直到 6 年前
        1
  •  5
  •   Golo Roden    6 年前

        2
  •  3
  •   coderbyheart    6 年前

        3
  •  2
  •   VoiceOfUnreason    6 年前

    class BankAccount {
        final History<Transactions> transactions;
    
        void deposit(Money money) {...}
        Money computeInterestAccruedSince(Date lastReview) { ... }
    
    }
    
        4
  •  1
  •   Vincent Hendriks    6 年前