TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Proxygen, Facebook's C++ HTTP Framework

324 pointsby mikeevansover 10 years ago

11 comments

dcsommerover 10 years ago
Hey there, I work on Proxygen at Facebook. I'm happy to answer any questions you have about the project.
评论 #8563700 未加载
评论 #8565357 未加载
评论 #8563826 未加载
评论 #8565651 未加载
评论 #8571995 未加载
评论 #8563472 未加载
评论 #8563820 未加载
评论 #8564116 未加载
评论 #8566578 未加载
评论 #8563547 未加载
评论 #8564376 未加载
评论 #8565556 未加载
评论 #8563305 未加载
b3ttaover 10 years ago
I really like your idea of the 4-part abstraction. Still… Your library really is not &quot;that&quot; easy to use.<p>I&#x27;m currently working on my own library using libuv, http-parser, nghttp2 and wslay, which is very similiar in it&#x27;s use to node.js. As you might guess a echo server is therefore only about 15 lines of code, but about as performant as your framework. The downsite is that it&#x27;s not as flexible due to the missing &quot;4-part abtraction&quot; (really… an excellent idea).<p>That&#x27;s why your release somehow saddens me: When I&#x27;m going to release my framework to the public, it might be pretty good for cross platform apps etc. compared to others, but it will never ever be as popular as yours. Heck… I don&#x27;t even have 10 twitter followers.
评论 #8563917 未加载
评论 #8563906 未加载
评论 #8563896 未加载
beliuover 10 years ago
dcsommer (author of proxygen) gave a great talk about this at the last Sourcegraph open-source meetup. Here&#x27;s the video: <a href="https://www.youtube.com/watch?v=-yxQIRl6Qic" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-yxQIRl6Qic</a>
评论 #8563581 未加载
thomasreggiover 10 years ago
&quot;You will need at least 2 GiB of memory to compile proxygen and its dependencies.&quot; What?
评论 #8563504 未加载
评论 #8563446 未加载
评论 #8563932 未加载
评论 #8563788 未加载
rdrockover 10 years ago
We used to do nginx + gunicorn for our rest services, it was not responding well beyond a point (for a given ec2 instance). We replaced that with nginx + lua (openresty module), we saw almost 10x increase in response times. Would it make sense for us to invest in something like this and hope to see a significant performance gain? Lowering response times is not a big deal but being able to get those same response times on a lower priced instance would definitely help. We have no real C++ skills in the team but we could learn or hire.
cthulhuologyover 10 years ago
what are the units on the table? the top looks like number of workers, but large numbers are unitless.
评论 #8563469 未加载
bsaulover 10 years ago
Looks to me as facebook&#x27;s answer to golang ?<p>Building simple, standalone http services with good performances seems to me what those two projects (proxygen and golang) are really about.<p>Now the question is, how much faster using C++ is, and how much safer and faster writing golang is...
评论 #8564511 未加载
评论 #8566282 未加载
评论 #8565047 未加载
评论 #8564198 未加载
评论 #8564513 未加载
pcuniteover 10 years ago
Excellent, I&#x27;ve been toying around with my own and looking at LibUV. I think the time is right for something like this. I want to maintain state on everything that connects to me.
72deluxeover 10 years ago
Looks interesting. Does anyone have a comparison of all these plethora of C++ HTTP frameworks, such as Civetweb etc.?
dimmanover 10 years ago
Facebook oughta hire some better scripters, the deps.sh is of terribly low quality. I didn&#x27;t get more than a couple of lines until i stumble upon this (which tells me the author has no clue :):<p>&#x27;start_dir=`pwd`; trap &quot;cd $start_dir&quot; EXIT;&#x27;...<p>No need to say that the script can be dangerous, in case directory change fails for instance, there&#x27;s no checks but sudo make uninstall is run anyway in another dir than the intended one.
评论 #8568222 未加载
ameliusover 10 years ago
Skimming through the article, it seems to me that this server spawns a thread per connection, is that correct?
评论 #8564038 未加载