Skip to main content

Facebook Open Sources Its Proxygen HTTP Framework And Server


Facebook today announced that it is open sourcing Proxygen, the C++ HTTP libraries — including an HTTP server — that it uses internally. The company has open-sourced quite a bit of its code in recent months, much of it focused on mobile developers. In many ways, today’s launch is more interesting, though, as it’s likely to reach a far wider number of developers.

From the get-go, Facebook notes that it isn’t trying to replace popular HTTP and proxy servers like Apache or nginx with Proxygen. “Those projects focus on building extremely flexible HTTP servers written in C that offer good performance but almost overwhelming amounts of configurability,” Facebook engineers Daniel Sommermann and Alan Frindell write in today’s announcement. “Instead, we focused on building a high performance C++ HTTP framework with sensible defaults that includes both server and client code and that’s easy to integrate into existing applications.”

Still, the framework allows you to quickly set up an event-driven server that can handle HTTP and SPDY requests. Chances are that other projects will look at this and use it as the basis to build their own web servers on top of this codebase.

Proxygen evolved from an earlier project in 2011 that aimed to write a customizable reverse-proxy load balancer, Sommermann and Frindell say.

While Facebook could have gone with Apache, nginx or Varnish as its HTTP stack, the engineers argue that building their own framework allowed the company to integrate more deeply with Facebook’s existing infrastructure and tools like the company’s version of Apache Thrift (which is also now available on GitHub).

Given Facebook’s size, the team was also looking for a solution that could scale beyond existing solutions, and the company wanted to be able to reuse the framework in other tools. Haystack, HHVM and Facebook’s load balancers also use Proxygen in some form or another, for example, as does the company’s mobile infrastructure.

By now Proxygen has handled “many trillions of HTTP(S) and SPDY requests,” so this is definitely some pretty battle-hardened code by now. You can find the source code here and a more in-depth description of how Proxygen works here.

Popular posts from this blog

ASUS VivoBook X202E Windows 8 Touchscreen Laptop Review And Giveaway

It wasn’t very long ago when prices of touchscreen Windows 8 laptops soared beyond $1000. Thankfully, those days are behind us, and portable computers can easily be purchased – touchscreen and all – for under $500. That’s precisely the demographic in which the ASUS VivoBook X202E falls. When compared to a high-end laptop, its specifications might seem modest, but for laptop buyers just looking for a way to browse the web, watch videos, use basic apps, and not spend too much money, something in this budget is perfectly suitable. The question is, of course, how does the ASUS VivoBook X202E compare to others on the market, and is it the one which you should be spending your hard-earned money on? Well, you’re just going to have to keep reading to find out. Best of all, we are giving away an ASUS VivoBook X202E to one lucky winner. Keep reading for your chance to take home this Windows 8 touchscreen laptop! Introducing the ASUS VivoBook X202E Laptop The ASUS VivoBook X202...

Samsung Galaxy Note 3 N9000 Review and Giveaway

When it comes to massive phones, nothing is more iconic than the Samsung Galaxy Note. It has gained popularity not only due to its size, but its additional features such as a stylus and a larger battery make it a more useful phone. Samsung released the third generation of the Galaxy Note in October, updating the phablet with a larger screen and improved hardware. Read through our review, then join the giveaway to win the  Samsung Galaxy Note 3 ! Competitors Of course, other Android competitors haven’t let the $640  Galaxy Note 3  be the only player in the phablet market. There are others such as the  Sony Xperia Z Ultra , the Samsung Galaxy Mega , and the other more common phones that are reaching 5″ screens such as the  Samsung Galaxy S4 , the  HTC One , and the  Nexus 5 . Unlike the normal-sized top contenders, the Galaxy Note 3 has a bigger screen and larger battery. It also offers specific features (surrounding the S Pen stylus) th...

Samsung Galaxy S5 Review and Giveaway

Few smartphones are as aggressively marketed as Samsung’s Galaxy S5. The S5 can no longer be considered brand-new — but it  is  Samsung’s flagship, at least for the next few months. With a gorgeous screen, a capable camera, a waterproof build, and a user-replaceable battery, the Galaxy S5 has a lot to offer… at least on paper. Let’s find out how good it really is. What Makes This Review Different There are about a million Galaxy S5 reviews out there. Why should you read this one? Two keys points make our review different: We bought our own device . Unlike many tech blogs, we don’t use a review unit Samsung gave us. We went out to the store and bought one, just like you would. This means everything you read here is truly impartial – we owe Samsung nothing. We used it for more than a month . Some sites rush to be the first to publish a review on a new device. That’s not how we do things. I used the Galaxy S5 as my main (and only) Android phone for nearly two months,...