<div dir="ltr">Even with thousands of updates a day, and 86400 seconds per day, there's plenty of headroom to handle same-second updates when they do happen... <div><br></div><div>One approach is to use this pseudocode:</div><div><br></div><div>if time() > current_serial:</div><div> new_serial = time()</div><div>else:</div><div> new_serial = serial + 1</div><div><br></div><div>This handles both clock rewind scenarios (that never happens in the real world...) as well as multiple updates in the same second.</div><div>It also simply becomes a counter if you have over 86400 updates/day, although in that case the suggestion to just use a counter makes more sense so you can start at 1.<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 30, 2016 at 4:32 PM, Dave Warren <span dir="ltr"><<a href="mailto:davew@hireahit.com" target="_blank">davew@hireahit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2016-03-30 12:35, Mark Andrews wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Or you can just use it as a serial number. Encoding date / time<br>
since epoch only works if the freqency of updates is low.<br>
</blockquote>
<br></span>
Even if you have more than one update per second, isn't incrementing the serial number and rebuilding the zone once per second going to be sufficient for real world purposes?<br>
<br>
Or am I misunderstanding?<span class="im HOEnZb"><br>
<br>
-- <br>
Dave Warren<br>
<a href="http://www.hireahit.com/" rel="noreferrer" target="_blank">http://www.hireahit.com/</a><br>
<a href="http://ca.linkedin.com/in/davejwarren" rel="noreferrer" target="_blank">http://ca.linkedin.com/in/davejwarren</a><br>
<br>
<br></span><div class="HOEnZb"><div class="h5">
_______________________________________________<br>
dns-operations mailing list<br>
<a href="mailto:dns-operations@lists.dns-oarc.net" target="_blank">dns-operations@lists.dns-oarc.net</a><br>
<a href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations" rel="noreferrer" target="_blank">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a><br>
dns-jobs mailing list<br>
<a href="https://lists.dns-oarc.net/mailman/listinfo/dns-jobs" rel="noreferrer" target="_blank">https://lists.dns-oarc.net/mailman/listinfo/dns-jobs</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><h4 style="margin:0px;padding:0px;font-family:Arial,sans-serif;color:rgb(148,157,158);font-weight:normal;line-height:17px"><br>Roy Hooper<br>Sr. Software Architect</h4><a href="http://www.rightside.co/" style="color:rgb(148,157,158);text-decoration:none;font-family:Times;font-size:medium" target="_blank"><img src="http://madebygraphiti.com/rightside/signature/rightside_logo.png" alt="Rightside" style="display:block;margin:20px 0px"></a><span style="color:rgb(0,0,0);font-family:Times;font-size:medium"></span><span style="font-size:medium;font-family:'Times New Roman'"></span><h5 style="margin:0px;padding:0px;font-size:13px;font-family:Arial,sans-serif;color:rgb(148,157,158);font-weight:normal;line-height:17px"><strong style="text-align:-webkit-auto">Mobile</strong><span style="text-align:-webkit-auto"> | 6</span>13.263.7691</h5><p style="margin:5px 0px 0px;padding:0px;font-family:Arial,sans-serif;color:rgb(148,157,158);line-height:19px"><a href="mailto:roy@rightside.ninja" target="_blank">roy@rightside.rocks</a><br><a href="http://www.rightside.co/" target="_blank">www.rightside.rocks</a><br></p></div><div><br></div></div></div>
</div>