Live data from Hacker News

Proxygen, Facebook's C++ HTTP Framework

code.facebook.com

41–50 of 98 posts

Re: Proxygen, Facebook's C++ HTTP Framework

#41
Looks to me as facebook's answer to golang ?

Building simple, standalone http services with good performances seems to me what those two projects (proxygen and golang) are really about.

Now the question is, how much faster using C++ is, and how much safer and faster writing golang is...

Re: Proxygen, Facebook's C++ HTTP Framework

#42
post #39

Skimming through the article, it seems to me that this server spawns a thread per connection, is that correct?

We use a very different model actually. Since spawning OS threads is expensive, we opted for the popular nonblocking-IO approach. Each worker thread (usually 1 per core on the CPU) is given connections in a round robin fashion from the listening socket. The worker thread runs an event loop processing events on the accepted socket.

Re: Proxygen, Facebook's C++ HTTP Framework

#43
post #2

Hey there, I work on Proxygen at Facebook. I'm happy to answer any questions you have about the project.

I would love to see a comparison between Proxygen and another server (ideally nginx or golang server). The numbers are impressive, but the client is on the same box, it is a big box, and it is a simple and short response. So I'm not sure if I should be wowed or not. From reading the post, Proxygen was written as a server that would be well-integrated into Facebook tools. I don't really use Facebook tools, so I'm not sure if Proxygen would be right for me?

Re: Proxygen, Facebook's C++ HTTP Framework

#44
post #2

Hey there, I work on Proxygen at Facebook. I'm happy to answer any questions you have about the project.

I would love to see a comparison between Proxygen and another server (ideally nginx or golang server). The numbers are impressive, but the client is on the same box, it is a big box, and it is a simple and short response. So I'm not sure if I should be wowed or not. From reading the post, Proxygen was written as a server that would be well-integrated into Facebook tools. I don't really use Facebook tools, so I'm not…

I think https://news.ycombinator.com/item?id=8563766 is a good answer to use cases.

Re: Proxygen, Facebook's C++ HTTP Framework

#45
post #41

Looks to me as facebook's answer to golang ? Building simple, standalone http services with good performances seems to me what those two projects (proxygen and golang) are really about. Now the question is, how much faster using C++ is, and how much safer and faster writing golang is...

[deleted]

Re: Proxygen, Facebook's C++ HTTP Framework

#46
post #2

Hey there, I work on Proxygen at Facebook. I'm happy to answer any questions you have about the project.

Could you comment on the verisimilitude of the benchmark parameters? I would expect in Facebook's production environment the number of active sockets would be hundreds or thousands of times greater than 400.

Re: Proxygen, Facebook's C++ HTTP Framework

#47
post #2

Hey there, I work on Proxygen at Facebook. I'm happy to answer any questions you have about the project.

Could you comment on the verisimilitude of the benchmark parameters? I would expect in Facebook's production environment the number of active sockets would be hundreds or thousands of times greater than 400.

You're right we see many more connections in production. We didn't have enough time to run exhaustive benchmarks for all the different possible combinations of active sockets, requests per connection, etc. As you might suspect, 400 was a sweet spot for our performance numbers at 1 core. Overall RPS didn't dip too much when increasing the number of connections. The table we included is just to give a rough idea of perf.

Re: Proxygen, Facebook's C++ HTTP Framework

#48
post #41

Looks to me as facebook's answer to golang ? Building simple, standalone http services with good performances seems to me what those two projects (proxygen and golang) are really about. Now the question is, how much faster using C++ is, and how much safer and faster writing golang is...

I think Facebook is a lot into D, sounds a more appropriate, for lack of a better word, "replacement" for golang.

Re: Proxygen, Facebook's C++ HTTP Framework

#49
post #41

Looks to me as facebook's answer to golang ? Building simple, standalone http services with good performances seems to me what those two projects (proxygen and golang) are really about. Now the question is, how much faster using C++ is, and how much safer and faster writing golang is...

I think Facebook is a lot into D, sounds a more appropriate, for lack of a better word, "replacement" for golang.

Re: Proxygen, Facebook's C++ HTTP Framework

#50

Earlier quoted context omitted.

I would love to see a comparison between Proxygen and another server (ideally nginx or golang server). The numbers are impressive, but the client is on the same box, it is a big box, and it is a simple and short response. So I'm not sure if I should be wowed or not. From reading the post, Proxygen was written as a server that would be well-integrated into Facebook tools. I don't really use Facebook tools, so I'm not…

I think https://news.ycombinator.com/item?id=8563766 is a good answer to use cases.

Maybe I am being dense, but why is Proxygen a better solution here?
Post reply on HN