[Opensim-dev] [Proposal] New software architecture

Justin Clark-Casey jjustincc at googlemail.com
Fri May 22 20:11:44 UTC 2009


diva at metaverseink.com wrote:
> Thank you Justin. I added your suggestions to the page. Wasn't sure 
> about the "closing" date, so I just made it up.
> 
> Justin Clark-Casey wrote:
>> 3.  Are the details of the protocol between client and server side really invisible to the service clients?  The awkward 
>> case here is between local 'in process' and remote servers, I think.  For instance, on IAssetService there is a method
>>
>> Get(string id, Object sender, AssetRetrieved handler)
>> [...]
>> All this perhaps is a little unfair since this problem and the one below are not at all new.  I'd like to know what you 
>> think about this.
> 
> Sure! This is a very old and always interesting problem. And a very 
> important one for unit tests ;-)
> 
> The semantics is not asset return on the same thread vs on another 
> thread. That's an operational detail that is/should be invisible to the 
> caller.
> The semantics of this operation is "Thank you for your call, I'll return 
> the asset to you when I have it, if I find it, or a null if I don't find 
> it".

I think the situation I was more worried about was where the calling code ends up doing a lot of work in the handler, 
which could have different effects depending on whether the handler ends up being invoked synchronously or asynchronously.

But if we document that the handler code really shouldn't be doing a major amount of work in any situation then I don't 
see any problem.

-- 
justincc
Justin Clark-Casey
http://justincc.wordpress.com



More information about the Opensim-dev mailing list