Re: .NET Remoting is slow!! Alternatives??

From: Sherif ElMetainy (elmeteny.NOSPAM_at_wayout.net.NOSPAM)
Date: 02/20/04


Date: Fri, 20 Feb 2004 06:39:24 +0200

Hello

As Christian mentioned, Datasets are serialized as XML even if you choose
binary.
So the question is whether the bottle neck is the generation and parsing of
the xml (CPU work) or is it the network problem (Bandwidth)?
If it is a network problem, you can fix it by using data
compression/decompression sink, this will require more CPU work, but will
save a lot of network traffic.

You can also yes TCP instead of IIS, and you can still use windows
authentication. Example here
http://msdn.microsoft.com/netframework/using/understanding/networking/remoting/default.aspx?pull=/library/en-us/dndotnet/html/remsspi.asp

May be you can also modify your code, such that you cach some data in the
client, for example a list of countries is not likely to change, so getting
this data only once and cashing it in the client can be nice. This will
minimize round trips to the server.

Also try to make you data come on one call using out parameters, if you have
2 methods each returing an object and are always called right after each
other, make one methods that returns the 2 objects, thus making only one
trip to the server.

Best regards
Sherif

"Ashwin Philar" <ashwinphilar@hotmail.com> wrote in message
news:33fe2089.0402190728.461f21b9@posting.google.com...
> Hi!! Everyone,
>
> This is what I want to do:
>
> 1) Users log on to domain
> 2) All authentication is based on domain user identity
>
> This is what I am doing:
>
> 1) I can host my remote components only in IIS because of reasons
> stated
> above.
> 2) I am using HTTP with Binary formatting
> 3) Passing DataSets to clients
>
> This is my problem:
>
> 1) .NET Remoting is slow when DataSets are passed!!
>
> I have tried converting DataSets to serializable object arrays, but
> still Remoting is slow!!
>
> I am building an Intranet application, how can I use a distributed
> architecture?
>
> Please let me know if your experience contradicts mine and also let me
> know if you have using alternatives, if any.
>
> Regards,
> Ashwin Philar



Relevant Pages

  • Re: how to export view to display - xml with specific xsd?
    ... Also xp_cmdshell runs on the server, ... SQL Server to a file and open the file in Word on the client machine. ... It opens up a ... XML to be generated in a Word-specific XML format. ...
    (microsoft.public.sqlserver.xml)
  • Re: Regarding IO, OO-design and Encapsulation
    ... Thus even though a client is accessing a generalized property, ... Question-types from an XML file and be able to output these to an XML ... The problem is that one needs to know the specific subclass the instance must belong to in order to create it. ... If the Client passes the Bystander instance to Service when Client invokes the Service's behavior, Client is essentially instantiating the R2 relationship temporarily. ...
    (comp.object)
  • Re: Arch question.
    ... If you do create seperate xml classes just for webservices ... ' NameInfo and get result as type HelloResult ... >> 1) On the server, I have my server classes that don't consider any xml. ... >> 4) The client has copy of xmldoc classes as needed. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Site Discovery
    ... We don't recommend you customize the information on the WINS server. ... XML document could not be customized. ... change the site of a client, you may add the client to the site boundary of ... | Can you edit this XML doc? ...
    (microsoft.public.sms.admin)
  • Re: DataSet and serialization is dangerous
    ... The dataset deserialization is based on XML. ... perl client, etc. ... Your server can only depend on the ... The client could have deleted/added Father1 a 100 ...
    (microsoft.public.dotnet.framework.adonet)