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.
Our best illustrations of 2022
Our artists’ thought-provoking, playful creations bring our stories to life, often saying more with an image than words ever could.
How CRISPR is making farmed animals bigger, stronger, and healthier
These gene-edited fish, pigs, and other animals could soon be on the menu.
The Download: the Saudi sci-fi megacity, and sleeping babies’ brains
10 Breakthrough Technologies 2023
Get the latest updates from
MIT Technology Review
Discover special offers, top stories, upcoming events, and more.