Skip to main content

Facebook Explains Real-Time Commenting

 
Readers have written to us about commenting becoming real time and it looked so natural to us that we’d presumed it had been around for longer than just a couple of weeks ago. Today Facebook announced the upgrade officially came out in the middle of January, and offered the developer community an explanation of how this deceptively simple looking feature evolved.

Every minute, Facebook serves more than 100 million pieces of content that might receive a comment, and during that same period of time, users post about 650,000 comments — that’s 16 million new associations per second. To make the commenting real time, the social network needed to track of who’s looking at what at any given time, which called for the invention of new systems for handling load patterns.
The solution ultimately became distributed storage tiers that updated locally in high frequency while retrieving information from data centers a bit less frequently. Facebook Engineer Ken Deeter calls this process “write locally, read globally.” He explains:
For example, when a user loads his News Feed through a request to our data center in Virginia, the system writes to a storage tier in the same data center, recording the fact that the user is now viewing certain pieces of content so that we can push them new comments. When someone enters a comment, we fetch the viewership information from all of our data centers across the country, combine the information, then push the updates out. In practice, this means we have to perform multiple cross-country reads for every comment produced. But it works because our commenting rate is significantly lower than our viewing rate. Reading globally saves us from having to replicate a high volume of writes across data centers, saving expensive, long-distance bandwidth.
Facebook posts explanations such as this one to a blog most likely hoping that third-party developers will tap the “write locally, read globally” model. What kinds of applications do you think might be able to build on the real-time commenting?

Comments

Popular posts from this blog

Top 5 Women Who Impacted Technology in 2010

Katie Stanton, International Strategist for Twitter Katie Stanton has impressively long names of companies in her resume. They include the White House, Google Inc, and her latest addition is Twitter. Her remit is working on Twitter’s international strategy and her experience in social media will be a key asset to the company. Katie has a history of working in technology, and her knowledge of departmental laws will help Twitter work alongside government agencies, as she’ll be spearheading the free information approach, especially after the Wikileaks incident. Stanton has been a key player in the techsphere for some time, and this extends to her private life. Following the Haiti disaster she worked with a group of engineers to create a free texting service to help those in need and she is constantly in demand as an expert in both social media and government policy.
Caterina Fake, Co-Founder of Flickr and Hunch Despite having a surname which sounds like a pseudonym for a spy (it’…

AT&T MiFi 2372 review

In the week or so that I have been testing the AT&T MiFi 2372 by Novatel Wireless, it has already saved no less than three lives. First, it saved my cable guy’s life. You see, Time Warner Cable provides the worst home Internet service I have ever experienced. I can’t even think of a close second. If providing terrible home Internet service was a sport, Time Warner Cable would be on its tenth consecutive undefeated season. Forget the fact that my upload speed is capped at 60Kbps and I’m lucky if I can get half that — it has been months since I’ve gone through a full day without at least one service interruption. Months. Unfortunately, Time Warner Cable has an exclusive contract with my building so I have no choice but to endure its abysmal service. Last week, as a Time Warner Cable technician entered my home for the sixth time in two months, I realized that this certainly would have spelled serious trouble had it not been for my trusty new back up device. Before the Mi…

facebook vs google+