Event sourcing 的核心思想是:不要只存当前状态,而是用 append-only store 记录所有变更事件。这个 store 作为 system of record,可用于重建 domain objects。

这种方式能简化复杂域的任务,避免数据模型与业务域的同步难题,同时提升 performance、scalability 与 responsiveness。它还能为 transactional data 提供一致性,并保留完整审计轨迹,支持 compensating actions。
Event sourcing vs Event-Driven Architecture (EDA)
正在验证访问权限...