Perlbal - Perbal internal redirects.

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > July 2007 > Perbal internal redirects.





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 Perbal internal redirects.
Ashish Padave

2007-07-03, 1:12 pm

Hello,

I read this on the archives, it was posted by Brad.

"Instead you can put Perlbal in front, which will advertise via a special
HTTP header that it supports internal reproxying, your php application
detects that, does its authentication and URL mapping, as well as MogileFS
client work to find where on the network that image is, then it replies to
Perlbal the locations of the resource that needs to be served. Then PHP
is free to do whatever, and Perlbal spoonfeeds the client. Becuse Perlbal
is async/event-based with a single thread, it can handles tens of
thousands of connections at once (as can plb, but plb doesn't do internal
redirects).

The cool thing about internal redirects is that it makes mod_perl or PHP
not waste their time with things they're not good at, and the whole
process is invisible to the end user."

Can someone please post some sample code or something explaining how its
done?

Thank you,

Ashish


Adam Jacob

2007-07-04, 1:11 am

You can find this in the Perlbal source, under "doc/reproxying.txt".

A link to that file in Subversion is here:

http://code.sixapart.com/svn/perlba.../reproxying.txt

Adam

On Jul 3, 2007, at 8:01 AM, Ashish Padave wrote:

> Hello,
>
> I read this on the archives, it was posted by Brad.
>
> "Instead you can put Perlbal in front, which will advertise via a
> special
> HTTP header that it supports internal reproxying, your php application
> detects that, does its authentication and URL mapping, as well as
> MogileFS
> client work to find where on the network that image is, then it
> replies to
> Perlbal the locations of the resource that needs to be served.
> Then PHP
> is free to do whatever, and Perlbal spoonfeeds the client. Becuse
> Perlbal
> is async/event-based with a single thread, it can handles tens of
> thousands of connections at once (as can plb, but plb doesn't do
> internal
> redirects).
>
> The cool thing about internal redirects is that it makes mod_perl
> or PHP
> not waste their time with things they're not good at, and the whole
> process is invisible to the end user."
>
> Can someone please post some sample code or something explaining
> how its done?
>
> Thank you,
>
> Ashish


--
HJK Solutions - We Launch Startups - http://www.hjksolutions.com
Adam Jacob, Senior Partner
T: (206) 508-4759 E: adam@hjksolutions.com


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com