News for hackers. Stuff that matters.
Re:7 Years Of YouTube Scalability Lessons In 30 Minutes by tbsdy on Tuesday March 27, 2012 @02:06AM (#3760266)
Uh, cheating?

"Cheating - Know How to Fake Data

Awesome technique. The fastest function call is the one that doesn’t happen. When you have a monotonically increasing counter, like movie view counts or profile view counts, you could do a transaction every update. Or you could do a transaction every once in awhile and update by a random amount and as long as it changes from odd to even people would probably believe it’s real. Know how to fake data."

So all those people who buy views are kinda screwed now :-) I suspect this is a bad example. I HOPE this is a bad example, if only for the KONY2012 campaign :P

Re:7 Years Of YouTube Scalability Lessons In 30 Minutes by henrikschroder on Tuesday March 27, 2012 @03:43AM (#3760499)
No no, the correct amount of views will be recorded for a specific video, it's just that each webserver doesn't know the exact number all the time. You make each webserver fetch the correct value perhaps every hour, and fake it inbetween. You'll get an ok approximation, users can't tell the difference, and you don't have to fetch the actual number every single pageview.
Re:7 Years Of YouTube Scalability Lessons In 30 Minutes by tbsdy on Tuesday March 27, 2012 @05:34AM (#3760715)
Sir, thank you :-) I appreciate you clarifying this!