by ajross · 14y ago · 0 comments
This is simple enough when described, but is not a technique I've seen applied much in practice or discussed in the community. I'm wondering if it's something that gets reinvented for all the projects that need it or if it's secret sauce known only in youtube. Regardless, I thought it was pretty insightful.
https://adblockplus.org/blog/downloading-a-file-regularly-ho...
http://www.stdlib.net/~colmmacc/2009/11/26/period-pain-3/
(http://www.stdlib.net/~colmmacc/2009/09/27/period-pain-part-... http://www.stdlib.net/~colmmacc/2009/09/14/period-pain/ for the background material).
The reasons primes are optimal should be obvious :)
The other way to solve the problem though would be to handle that circumstance cleanly. There are ways to resolve a thundering herd without creating a scalability problem.
http://files.multicastdns.org/draft-cheshire-dnsext-multicas...
Search for "random". Cool spec written by Stuart Cheshire of Apple.