Software // Social
News
2/8/2011
11:27 AM
Connect Directly
RSS
E-Mail
50%
50%

Facebook Opens Live Commenting To All

A company engineer details the behind-the-scenes development challenges in creating the new instant messaging-like feature.

Top 15 Facebook Apps For Business
(click image for larger view)
Slideshow: Top 15 Facebook Apps For Business

Facebook on Monday confirmed all users now have access to live commenting, a capability that allows accountholders to communicate in real-time.

First unveiled about two weeks ago, live commenting now gives Facebook users access to a more instant message-like experience within the social network. Users no longer must refresh their page to see if a friend has responded to a post; instead, comments appear as other users post them. The idea sounds simple: Execution, however, was not as easy as it appears, said Ken Deeter, a Facebook software engineer, in a company blog.

"This wasn't a small challenge: every minute, we serve over 100 million pieces of content that may receive comments. In that same minute, users submit around 650,000 comments that need to get routed to the correct viewers," he wrote. "To make this feature work, we needed to invent new systems to handle load patterns that we had never dealt with before."

At first, Facebook considered a poll-based approach that would periodically send a request to check whether new comments had arrived on pages with content that could be commented on, said Deeter. Although the social media giant could increase the polling frequency to approximate a real-time feel, the approach would not scale, he said.

"Because humans are so sensitive to latency in real-time communications, creating a truly serendipitous commenting experience requires comments to arrive as quickly as humanly and electronically possible," wrote Deeter. "In a poll-based approach this would mean a polling interval of less than five seconds (and that would still feel slow!), which would very easily overload our servers."

Instead, Facebook opted for a push-based approach, one that would let it know who was viewing each of the 100 million pieces of content per minute that the company serves, he said. And Facebook required a system that also could manage the rate at which this data changed -- up to 16 million new associations per second, Deeter noted.

Previous
1 of 2
Next
Comment  | 
Print  | 
More Insights
Social is a Business Imperative
Social is a Business Imperative
The use of social media for a host of business purposes is rising. Indeed, social is quickly moving from cutting edge to business basic. Organizations that have so far ignored social - either because they thought it was a passing fad or just didnít have the resources to properly evaluate potential use cases and products - must start giving it serious consideration.
Register for InformationWeek Newsletters
White Papers
Current Issue
InformationWeek - September 2, 2014
Avoiding audits and vendor fines isn't enough. Take control of licensing to exact deeper software discounts and match purchasing to actual employee needs.
Flash Poll
Video
Slideshows
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
In in-depth look at InformationWeek's top stories for the preceding week.
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.