Facebook releases C++ libraries to ease Internet communications

Facebook's Proxygen set of libraries can pave the way for the upcoming HTTP/2 Web communication protocols

Facebook has released a collection of open-source code libraries that should ease the process of getting C++ programs to communicate over the Internet

"We're hoping it will make it easier for people to build applications that need to provide services with HTTP," said Facebook engineering director Blake Matheny, referring to the protocol that serves as the basis for most Web data communications. "The libraries will make it easier for people to use HTTP as a base transport."

The library, called Proxygen, could also help Internet-facing organizations prepare for the next-generation Internet data communications protocol, HTTP/2.

"Even if they are not using C++, anybody who is following modern protocol development like HTTP/2, we are hoping they could look at Proxygen as a reference design," Matheny said.

C++ programs most often use external Web server modules, such as CGI (Common Gateway Interface), to supply a connection to the network, which can be cumbersome and slow to set up and run. Proxygen, which rhymes with oxygen, comes with server software and full HTTP stack, allowing the C++ program to communicate in HTTP internally.

"Instead of calling your application via CGI, you can stand up a Proxygen-based server that can call directly into your application. You can do that within a few lines of code," Matheny said.

Although Proxygen does not yet support HTTP/2, it does support SPDY/3 and SPDY/3.1, which served as the basis for HTTP/2. SPDY -- shorthand for "speedy" -- is an augmentation to HTTP developed by Google for speeding Web communications.

"As we work on modern protocols like SPDY or HTTP/2, Proxygen will make adoption of those protocols easier for people," Matheny said.

HTTP/2 is undergoing interoperability tests. Facebook hopes to add HTTP/2 support to Proxygen soon, perhaps by the end of this year.

Facebook started the Proxygen project in 2011 to create a high-performance reverse-proxy load balancer. The libraries have been battle tested in Facebook's operation and are a core component of the company's Web stack, fielding trillions of HTTP requests.

In one internal test, Facebook showed how a single 32-core server could field 267,000 HTTP requests per minute, or up to 304,000 SPDY requests per minute.

Proxygen relies on a number of other open-source Facebook libraries, including Folly and Thrift.

Joab Jackson covers enterprise software and general technology breaking news for The IDG News Service. Follow Joab on Twitter at @Joab_Jackson. Joab's e-mail address is Joab_Jackson@idg.com

Join the Good Gear Guide newsletter!

Error: Please check your email address.

Tags Development toolsapplication developmentsoftwareFacebook

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Joab Jackson

IDG News Service
Show Comments

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?