<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 -> @locations for 'n'
<br>seconds).</blockquote></div>
<div> </div>
<div>Could you give an example of this? I'm a bit confused.</div>
<div> </div>
<div>Say user Bob uploads a photo. The web server receives the file and sends it to MogileFS, which then stores it somewhere. I'm guessing MogileFS returns and gives the application some file ID?</div>
<div> </div>
<div>Next Bob is forwarded to a page where he now sees his uploaded photo linked to a web page. To get the image URL, the application would need to figure out the URL of that file ID. 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> </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> </div>
<div>Is that how it works? I'm just guessing here.</div>
<div> </div>