3 ms·
Article Summary: 2PC is not infallible, therefore, never use 2PC. What he should have said: People often engineer thinking 2PC will never fail. In reality it c
by exabrial 8y ago
Article Summary: 2PC is not infallible, therefore, never use 2PC.
What he should have said: People often engineer thinking 2PC will never fail. In reality it can, and if you use 2PC in a certain way you can also exacerbate the issue (distributed transactions). Instead, you should make the surface area in 2PC as small as possible to minimize impact of a failed 2PC. In addition, you are probably not monitoring for failures. Start doing that.
- rictic 8y agoI'd summarize it as: 2PC adds latency, throughput, and scalability constraints due to the coordinator role. If we drop an assumption (any transaction can be aborted at any time before it is committed), we can reduce coordination and get potential wins in the above metrics.
- deleted 8y ago[deleted]