Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1520282
  • 博文数量: 399
  • 博客积分: 8508
  • 博客等级: 中将
  • 技术积分: 5302
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-14 09:28
个人简介

能力强的人善于解决问题,有智慧的人善于绕过问题。 区别很微妙,小心谨慎做后者。

文章分类

全部博文(399)

文章存档

2018年(3)

2017年(1)

2016年(1)

2015年(69)

2013年(14)

2012年(17)

2011年(12)

2010年(189)

2009年(93)

分类: 架构设计与优化

2015-07-03 14:54:20

关于事务一致性和最终一致性的鉴别:

When examining the use case (or story), ask whether it’s the job of the user executing the use case to make the data consistent.

If it is, try to make it transactionally consistent, but only by adhering to the other rules of Aggregates.

If it is another user’s job, or the job of the system, allow it to be eventually consistent.

That bit of wisdom not only provides a convenient tie breaker, but it helps us gain a deeper understanding of our domain.

It exposes the real system invariants: the ones that must be kept transactionally consistent.

That understanding is much more valuable than defaulting to a technical leaning.
阅读(3543) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~