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

Evolution Of Computer Virus [infographic]

4 Free Apps For Discovering Great Content On the Go

1. StumbleUpon The granddaddy of discovering random cool stuff online, StumbleUpon will celebrate its 10th anniversary later this year — but its mobile app is less than a year old. On the web, its eight million users have spent the last decade recommending (or disliking) millions of webpages with a thumbs up / thumbs down system on a specially installed browser bar. The StumbleUpon engine then passes on recommendations from users whose interests seem similar to yours. Hit the Stumble button and you’ll get a random page that the engine thinks you’ll like. The more you like or dislike its recommendations, the more these random pages will surprise and delight. Device : iPhone , iPad , Android 2. iReddit Reddit is a self-described social news website where users vote for their favorite stories, pictures or posts from other users, then argue vehemently over their meaning in the comments section. In recent years, it has gained readers as its competitor Digg has lost them.

‘Wireless’ humans could backbone new mobile networks

People could form the backbone of powerful new mobile internet networks by carrying wearable sensors. The sensors could create new ultra high bandwidth mobile internet infrastructures and reduce the density of mobile phone base stations.Engineers from Queen’s Institute of Electronics, Communications and Information Technology are working on a new project based on the rapidly developing science of body-centric communications.Social benefits could include vast improvements in mobile gaming and remote healthcare, along with new precision monitoring of athletes and real-time tactical training in team sports, an institute release said.The researchers are investigating how small sensors carried by members of the public, in items such as next generation smartphones, could communicate with each other to create potentially vast body-to-body networks.The new sensors would interact to transmit data, providing ‘anytime, anywhere’ mobile network connectivity.Simon Cotton from the i