Re: Disconnect database connection after idle timeout

Xinhuan Zheng <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <D08A9C44.7D161%[email protected]>
Hi Parrin,

> While it is possible to do some caching in a proxy like this, the more important thing it does is buffering the content, and possibly serving static requests for JavaScript and images. That frees up the mod_perl processes to move on to another request.

I am questioning the value of this kind “proxy”. We have load balancer cache that can cache images and JavaScripts. This functions seems a bit duplicate. The value I am seeing is that because “proxy” understands the HTTP protocol so dynamic content can be served directly from “proxy” cache, without going through a front end server to memcache then a response back to a front end server to remote client. That’s the value I am seeing. I am not sure if this is the right understanding.

- xinhuan

From: Perrin Harkins <[email protected]<mailto:[email protected]>>
Date: Thursday, November 13, 2014 at 4:54 PM
To: Xinhuan Zheng <[email protected]<mailto:[email protected]>>
Cc: mod_perl list <[email protected]<mailto:[email protected]>>
Subject: Re: Disconnect database connection after idle timeout

On Thu, Nov 13, 2014 at 2:41 PM, Xinhuan Zheng <[email protected]<mailto:[email protected]>> wrote:
From the description of the document, the “proxy” server acts much like a memcache but it appears the difference is the “proxy” understands the HTTP protocol while memcache does not.

Not exactly. While it is possible to do some caching in a proxy like this, the more important thing it does is buffering the content, and possibly serving static requests for JavaScript and images. That frees up the mod_perl processes to move on to another request. This is the same process model used by most other systems, like FastCGI or nginx + Starman.

Would you think this “proxy” server sitting in front of the front end server but behind the load balancer?

Yes, it goes between your load balancer and your mod_perl server.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.