Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / March 2007

Tip: Looking for answers? Try searching our database.

Cached Data through .NET Remoting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 21 Mar 2007 05:32 GMT
Hi,

I am looking to build a solution whereas I load a large dataset via a
Windows Service and then make that dataset available to my other
applications via .NET Remoting.  My other applications connect through
web services and loading the data over and over again is a lot of
resources and adds a time expense to each call.

When I went to implement the solution I found that everything worked
fine, except that when my application  remoted into the windows
service the first time the remoting object was actually loading the
data.  After the initial call the time to query the data dropped (from
8 seconds to 1 second). I am trying to avoid the first call and any
subsequent call from taking 8 seconds or longer.

But shouldn't my application be able to query the windows service for
the already loaded data in 1 second?  The windows service shows it is
loading the data.

Is this possible via .NET Remoting or should I be looking at another
option.  I have opted to serialize the data to disk and have my
applications pick up the serialized dataset (this takes about 2
seconds)... however I would like to have this work through remoting.

I have not used .net remoting that much so I may have missed something
when I initially wrote the solution.

Any suggestions or comments are welcome.

Greg
Rowen - 21 Mar 2007 06:56 GMT
Is it is a singleton object, the remote object is only created when
the client connects to it for the first time.

If you are loading the data on class initialise, then this is why you
are experiencing the initial delay. However this is not really a
problem once the service is up and running. The problem you will have
is determining when the data will be refreshed and how to refresh it.

I'm not sure if this is the solution you are looking for (or what you
have implemented) but perhaps on the windows service start up you
should load the data into a dataset. The remote object should not load
this dataset, but rather the windows service itself. The remote object
merely returns the dataset to the calling client. You will then have
tom implement rules as to how the dataset will be refreshed, such as a
timer in the windows service application.

Regards,

Rowen

> Hi,
>
[quoted text clipped - 26 lines]
>
> Greg

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.