You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I am primarily doing proxying to localhost servers I have experimented today with proxying to a remote server and it seems DNS query is being done on every request substantially increasing the request time. Should I query the IP from DNS manually or is there a cleaner way?
The text was updated successfully, but these errors were encountered:
On a side-note, what performance penalty should I be looking at while proxying to remote host?
Having put my dns name to /etc/hosts I expected to see not more than 10% penalty but I what I see is:
Native request to remote server ~40ms
Request proxied through node-http-proxy with host in /etc/hosts: ~80ms
I am measuring the time both in chrome in code from doing request to getting proxyRes.
I found that by using https://www.npmjs.com/package/dnscache I'm able to get my performance tests to external domains down to about 6ms from 40ms... with just the default settings in the readme
While I am primarily doing proxying to localhost servers I have experimented today with proxying to a remote server and it seems DNS query is being done on every request substantially increasing the request time. Should I query the IP from DNS manually or is there a cleaner way?
The text was updated successfully, but these errors were encountered: