We noticed you're browsing in private or incognito mode.

To continue reading this article, please exit incognito mode or log in.

Not an Insider? Subscribe now for unlimited access to online articles.

Tom Simonite

A View from Tom Simonite

Facebook Gets a Short-Term Memory, to Keep You Commenting

A new feature makes the site into one giant instant-messaging chat room.

  • February 7, 2011

Facebook may be about to suck up even more of your time. Two weeks ago a feature rolled out that I’m told many users may not have noticed, but that is predicted to soon have them interacting with each other more on the the social network.

That feature was instantly updating comments, and it turns every piece of content on Facebook into an instant messaging chat room. Any time you add a comment to, say, a photo or status update it will now appear instantly in front of anyone else looking at that same page.

It feels like another example of how all kinds of asynchronous messaging tools like email and sms are being converted into synchronous ones. Google Wave (RIP) created a realtime combination of email, IM and wikis; Facebook messages did the same to email, SMS and IM. “Having a conversation in a comment thread was a stuttering experience,” Facebook newsfeed engineer Ken Deeter told me, “you had to keep refreshing the page to see new comments.”

Switching to live updating may seem a small change from a user’s perspective. But the engineering decisions Deeter and colleagues had to make illustrate how complex it is to operate a site with more than half a billion users.

The most obvious way for Facebook to go instant – having your browser check for new comments every second or so when viewing a page – “would have made the site fall down for sure,” Deeter says. Instead Facebook had be given a kind of short term memory to keep track of who was looking at what at any given moment. Each time a new comment is added it is run past that memory, which checks to see who needs to see it immediately and directs it where it needs to go.

What’s more, unlike most data stored in the cloud, it couldn’t be put onto hard disks, because that wouldn’t keep pace with the rapid rate at which people log on to and off of Facebook. “We’re handling around 16 million viewer-to content associations per second so it’s unfeasible to do this on disk,” says Deeter, “we had to build a memory-based [i.e. RAM] system that can handle a very high write rate.”

That new memory couldn’t be in one place, because the delay in reaching it from all corners of Facebook’s global empire of users would be too great. Instead the team added one in each of the firm’s data centers, tasked with keeping track of its closest users. When a comment is added each of the local systems is polled to ensure everyone sees what they need to. You can read more details on this on Facebook’s engineering blog.

Any change made by Facebook is a vast social experiment a much as an exercise in software engineering, though, and the firm expects the way people behave on the site to change. In the course of building out the new feature it was uncovered that in any given minute over 100 million comment threads are being viewed online and that over 650,000 comments are made. Those and other figures are now being watched closely. “You have to wait a while for people realize that it is has changed,” says Deeter, “in another two weeks or so I think we’ll find that people have more conversations in comments because it makes you feel like there are people on the site with you.”

To paraphrase, we may all be about to start spending even more time on their site.

AI and robotics are changing the future of work.  Are you ready?  Join us at EmTech Next 2019.

Register now
Want more award-winning journalism? Subscribe to Insider Plus.
  • Insider Plus {! insider.prices.plus !}*

    {! insider.display.menuOptionsLabel !}

    Everything included in Insider Basic, plus the digital magazine, extensive archive, ad-free web experience, and discounts to partner offerings and MIT Technology Review events.

    See details+

    Print + Digital Magazine (6 bi-monthly issues)

    Unlimited online access including all articles, multimedia, and more

    The Download newsletter with top tech stories delivered daily to your inbox

    Technology Review PDF magazine archive, including articles, images, and covers dating back to 1899

    10% Discount to MIT Technology Review events and MIT Press

    Ad-free website experience

You've read of three free articles this month. for unlimited online access. You've read of three free articles this month. for unlimited online access. This is your last free article this month. for unlimited online access. You've read all your free articles this month. for unlimited online access. You've read of three free articles this month. for more, or for unlimited online access. for two more free articles, or for unlimited online access.