[Opensim-dev] GetAssetStreamHandler, grid mode and caching

Stefan Andersson stefan at tribalmedia.se
Sun Apr 26 18:06:30 UTC 2009


Diva, Tommil,

 

as being the one actually introducing the Get/SetAssetStreamHandlers, I can tell you that they are quite simply just that - handlers for incoming requests for assets.

 

Whether they should be cached or not is of course subject to the same questions as any 'should this be cached' discussion.

 

I see no reason why they shouldn't be. The reason they aren't is because they are jurassic - stemming from the 'true alpha' days when caching would just add another layer to debug.

Best regards,
Stefan Andersson



 
> Date: Sun, 26 Apr 2009 09:40:44 -0700
> From: diva at metaverseink.com
> To: opensim-dev at lists.berlios.de
> Subject: Re: [Opensim-dev] GetAssetStreamHandler, grid mode and caching
> 
> Tommil,
> 
> RegionAssetService is meant to be an http service to get assets from 
> regions when they run in standalone mode. Hence that original logic it 
> had for being enabled on the Hypergrid. In gridmode+HG, that module is 
> not enabled.
> 
> If you want to get assets from regions when you are in gridmode, you 
> should use the AssetCache, obviously. I suggest you don't touch 
> GetAssetStreamHandler, because (I think) that's meant to be what it is: 
> the raw request. It's your code's business to figure out what to do in 
> these different modes.
> 
> We can go into the old discussion about the complexity of managing 
> standalone vs grid mode, and all the headaches, but that's a much deeper 
> issue...
> 
> Crista
> 
> Tommi Laukkanen wrote:
> > Hello
> > 
> > Does someone know why GetAssetStreamHandler is not using cache but
> > fetching data directly from database with asset data plugin? This can
> > cause pretty heavy load on database when a lot of assets is loaded via
> > HTTP.
> > 
> > I noticed this when debugging why RegionAssetService does not work in
> > grid mode. It fails as GetAssetStreamHandler tries to load the assets
> > via data plugin which is not present in region instead of using
> > assetcache which is used by ll clients.
> > 
> > I would like to propose changing GetAssetStreamHandler to use
> > AssetCache to enable MXP enabled client to load assets via region in
> > grid mode (ll viewers load assets via region in grid mode but use
> > UDP).
> > 
> > -tommi
> > _______________________________________________
> > Opensim-dev mailing list
> > Opensim-dev at lists.berlios.de
> > https://lists.berlios.de/mailman/listinfo/opensim-dev
> > 
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20090426/ff794a6d/attachment-0001.html>


More information about the Opensim-dev mailing list