TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CockroachDB's Consistency Model

102 pointsby Twixesalmost 3 years ago

4 comments

vlmutoloalmost 3 years ago
&gt; insert into hacker_news_comments (id, parent_id, text) values (2, 1, &#x27;OP is wrong&#x27;)<p>Worth the read just for this.
nasalmost 3 years ago
It&#x27;s an interesting article but probably needs &quot;2019&quot; in the title.
bumper_cropalmost 3 years ago
One of the things that made linearizabilty click for me was thinking in terms of happens-before:<p><pre><code> volatile int a; a = 1; print(a) &#x2F;&#x2F; Could this print Zero? </code></pre> Even assuming only one program, one thread, one process, no interleaving and nothing fishy, could the final line print 0? In the serializable consistency, the answer is yes. Linearizability is framed in terms of clocks, but really that&#x27;s just trying to establish that one thing happened before another. The &quot;clock&quot; in this example is the line number.
评论 #31777402 未加载
sparselyalmost 3 years ago
OP is wrong