Silverlight HTTP Concurrent connections

Silverlight HTTP Concurrent connections

Old forum URL: forums.lhotka.net/forums/t/6294.aspx


davido_xml posted on Friday, January 30, 2009

Hi,

As far as I know IE7 (and other browsers) limit the number of concurrent connections per domain. I think the limit is 2. I believe IE8 will increase this limit to 6. (source http://msdn.microsoft.com/en-us/magazine/dd434653.aspx)

I am looking at designing an object (call it widget) to suit a use case. The object has, amonng others, several integer properties that are essentially foriegn keys to name-value pairs. So let's say my object has a

CategoryIdProperty, ColourIdProperty, TransactionTypeIdProperty etc.

In my XAML I plan on creating a CslaDataProvider to return the widget object and a CslaDataProvider per "foriegn key" to translate the integer Id properties to the matching string name.

So imagine now I have 10 such "foriegn key" properties.

Firstly, is this the correct approach or should I edit widget to also return the matching string name for each "foreign key"?

If it is the correct approach are the calls from the CslaDataProviders queued and managed or should I write code to check this myself?

 

sergeyb replied on Friday, January 30, 2009

I think this is not a very efficient approach.  I try to retrieve the “string value” for each foreign key as part of the same stored procedure that returns your object.  Even though 10 joins is a lot, but it will be much-much faster than 10 calls to a server.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: davido_xml [mailto:cslanet@lhotka.net]
Sent: Friday, January 30, 2009 8:09 AM
To: Sergey Barskiy
Subject: [CSLA .NET] Silverlight HTTP Concurrent connections

 

Hi,

As far as I know IE7 (and other browsers) limit the number of concurrent connections per domain. I think the limit is 2. I believe IE8 will increase this limit to 6. (source http://msdn.microsoft.com/en-us/magazine/dd434653.aspx)

I am looking at designing an object (call it widget) to suit a use case. The object has, amonng others, several integer properties that are essentially foriegn keys to name-value pairs. So let's say my object has a

CategoryIdProperty, ColourIdProperty, TransactionTypeIdProperty etc.

In my XAML I plan on creating a CslaDataProvider to return the widget object and a CslaDataProvider per "foriegn key" to translate the integer Id properties to the matching string name.

So imagine now I have 10 such "foriegn key" properties.

Firstly, is this the correct approach or should I edit widget to also return the matching string name for each "foreign key"?

If it is the correct approach are the calls from the CslaDataProviders queued and managed or should I write code to check this myself?

 



davido_xml replied on Friday, January 30, 2009

Thanks for the reply. Do you have any information on how CSLA queues requests?

sergeyb replied on Friday, January 30, 2009

If you are using SynchornizedProxy, CSLA will fire requests one at a time.  Otherwise, it relies on SL to take care of it.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: davido_xml [mailto:cslanet@lhotka.net]
Sent: Friday, January 30, 2009 9:26 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: Silverlight HTTP Concurrent connections

 

Thanks for the reply. Do you have any information on how CSLA queues requests?

Copyright (c) Marimer LLC