数据传输事务的定义
- 最多一次:消息不会被重复发送,最多被传输一次,但也有可能一次不传输。
- 最少一次:消息不会被漏发送,最少被传输一次,但也有可能被重复发送。
- 精确的一次(Exactly once):不会漏传输也不会重复传输,每个消息都被传输一次而且仅仅被传输一次,这是大家所期望的。
事务保证
- 内部重试问题:Preceducer幂等处理
- 多分区原子写入
It has been observed that many people struggle to choose betweenHTTP PUT vs POSTmethods when designing a system. Though,RFC 2616has been very clear in differentiating between the two – yet complex wordings are a source of confusion for many of us. Let’s try to solve the puzzlewhen to use PUT or POST.
Let’s compare them for better understanding.