How does Perlbal translate URLs?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Perlbal > How does Perlbal translate URLs?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How does Perlbal translate URLs?  
drpr0ctologist@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-19-07 12:11 AM

How does Perlbal help in translating real URLs to MogileFS URLs?  For
instance a client requests www.site.com/hi.jpg.  Perlbal translates that
into mogilefs.site.com/234234.fid, then fetches it and returns it to the
client, is this correct?

Or does it have to be the application that processes this?






[ Post a follow-up to this message ]



    Re: How does Perlbal translate URLs?  
drpr0ctologist@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-20-07 12:11 AM

>
> Perlbal doesn't translate it, your application does.
>
> User requests hi.jpg
> Perlbal forwards request to application
> Application returns X-REPROXY-URL: 2342342.fid
> Perlbal requests 2342342.fid and returns it to the user


Suppose I go directly to 2342342.fid in my browser (not using Perlbal).
Would this lead to the image showing up?

Also, do I need to use Perlbal in order to use MogileFS?






[ Post a follow-up to this message ]



    Re: How does Perlbal translate URLs?  
dormando


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-20-07 12:11 AM

drpr0ctologist@gmail.com wrote:
>     Perlbal doesn't translate it, your application does.
>
>     User requests hi.jpg
>     Perlbal forwards request to application
>     Application returns X-REPROXY-URL: 2342342.fid
>     Perlbal requests 2342342.fid and returns it to the user
>
>
> Suppose I go directly to 2342342.fid in my browser (not using Perlbal).
> Would this lead to the image showing up?
>
> Also, do I need to use Perlbal in order to use MogileFS?

You could, but... why not just use perlbal? Mogstored is already a
perlbal. Just go all the way  Perlbal does return request buffering,
upload buffering, header caching...

After seeing a bunch of your questions to the list, I'd highly recommend
just installing an instance of this guy locally and playing with it for
a few hours.

Set up a DB, mogilefs tracker, storage, perlbal, and apache+language on
localhost somewhere. Have perlbal talk to apache, then fiddle with small
application scripts until you get it right.

(and to answer your question, just think: If you request hi.jpg and your
application looks it up via key in mogilefs, what will happen if you
request a 135921352135.fid through your application? 

fid's are also ephemeral! If you replace a file it gets a new fid. Not a
good thing to use as a permalink anywhere.

-Dormando






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:07 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register