TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Starbucks Does Not Use Two-Phase Commit

84 点作者 jteo将近 15 年前

5 条评论

strlen将近 15 年前
This is an exceptionally well written and accessible essay (I wish I could write like this!). There's another great issue dealing with ultimately inability to scale atomic distributed transaction across rows by Pat Helland "Life Beyond Distributed Transactions":<p><a href="http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf" rel="nofollow">http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf</a> (warning: PDF)<p>Amongst the points discussed, it talks about how real life transactions from getting a coffee at Starbucks to buying a home aren't atomic but are rather based on "workflows" with promises and budgetting for worst cases.
AndrewO将近 15 年前
Wow—that's a great way to explain those concepts to the layman.
评论 #1556143 未加载
solutionyogi将近 15 年前
Great article. I think this article was part of 'Best of Software Writing I' by Joel Spolsky.<p><a href="http://www.joelonsoftware.com/articles/BestSoftwareWriting.html" rel="nofollow">http://www.joelonsoftware.com/articles/BestSoftwareWriting.h...</a>
评论 #1556486 未加载
elblanco将近 15 年前
One problem Starbucks around here seem to have is that they will inevitably make cups of coffee for mystery customers who never pick them up. I've seen as many as 3 cups of very precisely crafted coffees on the counter with nobody else in the store.
评论 #1554884 未加载
评论 #1554748 未加载
Twisol将近 15 年前
Does anyone know if there is a library for this sort of communication for web communications? I'm working on my own for a web application I'm writing, but it would be better if one already exists. (If not, I've been planning on open-sourcing mine when it's usable...)<p>Incidentally, I explained this exact concept to a few friends who I talk to about my project, except I used Pat &#38; Oscar's! You order and they give you a number, and you go sit down. Then when your order is ready, they come to you by finding the table with your number on it. A benefit to this analogy is that you can have multiple outstanding "orders", simply by having multiple numbers on your table.<p>I've been meaning to write a post about how I plan on using this, I just haven't felt motivated. Maybe I will now!
评论 #1555116 未加载
评论 #1555158 未加载
评论 #1554847 未加载