Perlbal - Perlbal module idea

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > February 2006 > Perlbal module idea





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Perlbal module idea
Brian Moon

2006-02-07, 5:45 pm

We are restructuring our network and are in need of something like
Perlbal that does a little more.

Much of our pages contain duplicate data. We would like to reduce the
cache size by not duplicating that data in cache. So, our idea is to
cache parts of pages and let the front end daemon assemble that data
like SSI and send it back to the user. I have already created a PHP
script that does this, but I would rather have it in something like Perlbal.

Basically, this script takes a request and checks memcached for the
content. If its not there, it makes a backend request to an application
server for the content.

Now, this is where it gets more complicated. The script then process
SSI type data in the content and makes additional requests from
memcached or the backend as needed to assemble the page. When finished,
it sends it out.

Is what I am talking about possible with a module in Perlbal? Can a
module be that involved? I know there are modules to rewrite images
files and this is not far from that.

--
Brian Moon
dealnews.com
--------------
How to go broke saving money.
http://dealnews.com/

Brad Fitzpatrick

2006-02-07, 8:45 pm

You want something like ESI (Edge Side Includes). This would be CPU-heavy
in Perl. Look into the latest betas of Squid, which I hear do ESI.

You could try in Perlbal, but I'd guess it'd be painful.

- Brad

On Tue, 7 Feb 2006, Brian Moon wrote:

> We are restructuring our network and are in need of something like
> Perlbal that does a little more.
>
> Much of our pages contain duplicate data. We would like to reduce the
> cache size by not duplicating that data in cache. So, our idea is to
> cache parts of pages and let the front end daemon assemble that data
> like SSI and send it back to the user. I have already created a PHP
> script that does this, but I would rather have it in something like Perlbal.
>
> Basically, this script takes a request and checks memcached for the
> content. If its not there, it makes a backend request to an application
> server for the content.
>
> Now, this is where it gets more complicated. The script then process
> SSI type data in the content and makes additional requests from
> memcached or the backend as needed to assemble the page. When finished,
> it sends it out.
>
> Is what I am talking about possible with a module in Perlbal? Can a
> module be that involved? I know there are modules to rewrite images
> files and this is not far from that.
>
> --
> Brian Moon
> dealnews.com
> --------------
> How to go broke saving money.
> http://dealnews.com/
>
>


Evan Martin

2006-02-09, 5:45 pm

I also just stumbled across this:
http://www.lighttpd.net/documentation/cml.html
It hooks into the webserver and lets you write little snippets of code
on how to hook together pieces of pages.
It requires libmemcached because it's included in their API.

On 2/7/06, Brad Fitzpatrick <brad@danga.com> wrote:
> You want something like ESI (Edge Side Includes). This would be CPU-heav=

y
> in Perl. Look into the latest betas of Squid, which I hear do ESI.
>
> You could try in Perlbal, but I'd guess it'd be painful.
>
> - Brad
>
> On Tue, 7 Feb 2006, Brian Moon wrote:
>
lbal.[vbcol=seagreen]
n[vbcol=seagreen]
,[vbcol=seagreen]
>


Brian Moon

2006-02-10, 2:46 am

> I also just stumbled across this:
> http://www.lighttpd.net/documentation/cml.html
> It hooks into the webserver and lets you write little snippets of code
> on how to hook together pieces of pages.
> It requires libmemcached because it's included in their API.


Yes, but it is including local files. I want to include files via HTTP.

Thanks though.

Brian.

Eric Chang

2006-02-10, 2:46 am

ESI http://www.esi.org/
Squid 3 support ESI now,but maybe not stable enough for production use.

Brian Moon

2006-02-10, 2:46 am

ESI is a little heavier than I want.

I simply want an assembler. And my current model does not have it
embeded. A URL list is sent at the top of the page, not scanning of the
body is needed.

Perhaps this difference may make it possible as a perlbal module. Its
pretty fast as a php script already. But, then again, maybe fast in PHP
is nowhere near as fast as in perlbal.

Brian Moon
dealnews.com
--------------
How to go broke saving money.
http://dealnews.com/

Eric Chang wrote:
> ESI http://www.esi.org/
> Squid 3 support ESI now,but maybe not stable enough for production use.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com