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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Amazon Time Sync Service

128 点作者 sizediterable超过 3 年前

11 条评论

londons_explore超过 3 年前
It&#x27;s <i>really</i> hard to use these API&#x27;s correctly.<p>Remember... your CPU can halt at any time for any number of milliseconds. That means simple things like:<p><pre><code> upperBound, lowerBound = readTime() if (upperBound&lt;deadline) do_stuff(x, y, z) </code></pre> Are incorrect... There is no guarantee that the &#x27;if&#x27; statement didn&#x27;t take many milliseconds, and that the stuff didn&#x27;t end up happening after the deadline.<p>It&#x27;s also very easy to write code that works, but is theoretically wrong. You will leave a hidden bug that may only rear its head years down the line.
评论 #29102852 未加载
评论 #29101175 未加载
评论 #29103093 未加载
评论 #29103651 未加载
评论 #29105985 未加载
评论 #29103052 未加载
loxias超过 3 年前
Two observations&#x2F;questions, the first probably naive:<p>* It&#x27;s not that hard to get your own &quot;world class&quot; time server, for under a thousand. A Rb standard slaved to a GPSDO is gonna be <i>so</i> accurate <i>and</i> stable, and use that to drive a SBC that supports IEEE1588, where you run your NTP and PTP server. Oh, but I guess that box, while inexpensive, isn&#x27;t in Amazons DC, so doesn&#x27;t help you.<p>* PTP&#x27;s absence in the Amazon Time Sync Service article is quite conspicuous!
评论 #29103872 未加载
评论 #29103417 未加载
babelfish超过 3 年前
Using atomic clocks too, nice. From an older post:<p>&gt; It uses a fleet of redundant satellite-connected and atomic clocks in each Region to deliver time derived from these highly accurate reference clocks.<p><a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;mt&#x2F;manage-amazon-ec2-instance-clock-accuracy-using-amazon-time-sync-service-and-amazon-cloudwatch-part-1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;mt&#x2F;manage-amazon-ec2-instance-c...</a>
评论 #29106929 未加载
deanCommie超过 3 年前
They released it in 2017. [1]<p>Today they released a new OSS daemon and library for it.<p>[1] <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2017&#x2F;11&#x2F;introducing-the-amazon-time-sync-service&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2017&#x2F;11&#x2F;introduci...</a>
glenngillen超过 3 年前
Back from my time at Amazon, one of my favourite technical videos on the internal educational&#x2F;YouTube thing was from a service team explaining how hard accurate clock sync in distributed systems was. One of those problems I’ve just taken for granted over the years. But just layers and layers of complexity where naive assumptions at any point get you the wrong result, but it’s not at all obvious you have the wrong result.<p>I really wish they made more of that stuff publicly available.
adamfeldman超过 3 年前
Google and GCP offer their own NTP endpoints. Does anyone know if GCP also exposes the TrueTime API to customers, or if it&#x27;s only internal to Spanner?<p>I can&#x27;t find any instance of the word &quot;bound&quot; in the GCP or Google NTP docs.<p>[1]: <a href="https:&#x2F;&#x2F;developers.google.com&#x2F;time&#x2F;guides#google_compute_engine" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;time&#x2F;guides#google_compute_eng...</a><p>[2]: <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;compute&#x2F;docs&#x2F;instances&#x2F;managing-instances#configure-ntp" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;compute&#x2F;docs&#x2F;instances&#x2F;managing-ins...</a>
评论 #29100984 未加载
jeffbee超过 3 年前
One of the key aspects of the TrueTime system is any device with serious clock error is simply murdered. It seems like offering that would significantly benefit users of this AWS API.
strimp099超过 3 年前
Can someone please explain to me what this is all about like I’m five years old?
评论 #29104901 未加载
评论 #29103696 未加载
评论 #29103098 未加载
tyingq超过 3 年前
I&#x27;m curious about the title on this submission. I thought TrueTime had unusually strong guarantees about accuracy that don&#x27;t seem to be called out in what I&#x27;m reading on the linked article.
评论 #29101596 未加载
评论 #29101036 未加载
kohlerm超过 3 年前
Does that mean cockroachdb or others could implement a Spanner like DB?
drewda超过 3 年前
Perhaps the biggest &quot;fake-out&quot; in 21st century computing: Google publicly released its MapReduce paper -- directing most of the rest of the industry toward loosely coupled, overly complex distributed data processing systems like Hadoop for the following decade -- but internally they just bought a bunch of atomic clocks and built a distributed RDBMS.<p>I know this is a somewhat simplified story, but it does make me chuckle.
评论 #29102124 未加载
评论 #29101216 未加载
评论 #29101181 未加载
评论 #29102296 未加载
评论 #29103175 未加载
评论 #29101324 未加载
评论 #29102080 未加载