<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Perlbal talks to your webserver, then your webserver talks to your tracker<br>(mogilefsd) or memcached (which has the results of get_paths), and your
<br>webserver replies to Perlbal with the locations of the files in MogileFS<br>mogstored node(s), optionally telling Perlbal to cache that mapping<br>internally (Perlbal can internally cache a URL -&gt; @locations for &#39;n&#39;
<br>seconds).</blockquote></div>
<div>&nbsp;</div>
<div>Could you give an example of this? I&#39;m a bit confused.</div>
<div>&nbsp;</div>
<div>Say user Bob uploads a photo.&nbsp; The web server receives the file and sends it to MogileFS, which then stores it somewhere.&nbsp; I&#39;m guessing MogileFS returns and gives the application some file ID?</div>
<div>&nbsp;</div>
<div>Next Bob is forwarded to a page where he now sees his uploaded photo linked to a web page.&nbsp; To get the image URL, the application would need to figure out the URL of that file ID.&nbsp; It tells the web app this URL:</div>

<div><a href="http://img.domain.pl:7500/dev8/0/000/763/0000763408.fid">http://img.domain.pl:7500/dev8/0/000/763/0000763408.fid</a></div>
<div>&nbsp;</div>
<div>The web app then passes that to Perlbal, and Perlbal translates that into:</div>
<div><a href="http://img1.domain.pl/dev8/0/000/763/0000763408.jpg">http://img1.domain.pl/dev8/0/000/763/0000763408.jpg</a></div>
<div>&nbsp;</div>
<div>Is that how it works?&nbsp; I&#39;m just guessing here.</div>
<div>&nbsp;</div>