Live data from Hacker News

High Performance TCP Proxy Server

partow.net

1–10 of 62 posts

Re: High Performance TCP Proxy Server

#4

How does this compare to using HAProxy in TCP mode?

HAProxy is 90k loc while this is 300 loc so they really are different beasts. I would say HAPRoxy is a great general purpose proxy that has most of the features you want while this proxy server is a MVP proxy you can grow off of if you want to do something that HAProxy can't provide.

Re: High Performance TCP Proxy Server

#5

How does this compare to using HAProxy in TCP mode?

HAProxy is 90k loc while this is 300 loc so they really are different beasts. I would say HAPRoxy is a great general purpose proxy that has most of the features you want while this proxy server is a MVP proxy you can grow off of if you want to do something that HAProxy can't provide.

Netty is a more mature foundation for this sort of thing and likely much faster

Re: High Performance TCP Proxy Server

#7

Earlier quoted context omitted.

HAProxy is 90k loc while this is 300 loc so they really are different beasts. I would say HAPRoxy is a great general purpose proxy that has most of the features you want while this proxy server is a MVP proxy you can grow off of if you want to do something that HAProxy can't provide.

Netty is a more mature foundation for this sort of thing and likely much faster

Can you expand on your reasons for making that claim - perhaps with some benchmarks?

Re: High Performance TCP Proxy Server

#8

Earlier quoted context omitted.

HAProxy is 90k loc while this is 300 loc so they really are different beasts. I would say HAPRoxy is a great general purpose proxy that has most of the features you want while this proxy server is a MVP proxy you can grow off of if you want to do something that HAProxy can't provide.

Netty is a more mature foundation for this sort of thing and likely much faster

Again, this is a really cool 300 loc snippet. No need to pull in the jvm if you're going to do something simple.

As for performance, a reproducible benchmark is the minimum requirement to even start the conversation.

Re: High Performance TCP Proxy Server

#10
post #7

Earlier quoted context omitted.

Netty is a more mature foundation for this sort of thing and likely much faster

Can you expand on your reasons for making that claim - perhaps with some benchmarks?

Check out the techempower framework benchmarks. Netty can do over a million http responses per second on a reasonable machine.

On Linux it uses an epoll native driver and is asynchronous. The framework makes it possible to write proxies in a few lines.

If you want to beat netty by a significant margin you'll probably need to use kernel bypass

Post reply on HN