By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,672 Members | 1,303 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,672 IT Pros & Developers. It's quick & easy.

c# web server with persistent data

P: n/a
I am new to web services and want to expose a C# program
through web services (soap or otherwise) that will have a
service with cached data running on a server that clients
can make requests to without instanciating the (data)
classes locally. I see many examples of using web
services where the server really just handles requests to
point to XML serialized classes that have to be
instanciated locally on the client. This is no good for
me since I will be caching ~200megs of data into datasets
etc. which takes minutes to load. I need to attach the
client to an already running instance of the server. Can
anyone help?

Thanks,

Jeff.
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Try to use the Cache object provided by the
System.Web.HttpContext.Current.Cache.

U can cache your data there.
However, if u want to access your data from another object running on a
remote server , u can use
remoting. U can then create a remote object that will handle the data
management u want.
Expose it as a singleton, so as to be stateful, from your host but be
careful in the leaselife time expirations.
Then cofigure your web service app as a remoting client to the server u have
built.
However the memory amount u need is very big (200 MBs) and unless u can take
use of a big server I think that u should not
keep all this amount of data in memory, but rather keep them in the database
and try to fine tune your logic in loading
all these data.
If these data come as a result of a complex long time taking algorithm, try
to keep these results in the database by serializing
into it your pre processed datasets and then provide your clients with
these.

I hope it helps

"Jeff" <j.*******@comcast.net> wrote in message
news:06****************************@phx.gbl...
I am new to web services and want to expose a C# program
through web services (soap or otherwise) that will have a
service with cached data running on a server that clients
can make requests to without instanciating the (data)
classes locally. I see many examples of using web
services where the server really just handles requests to
point to XML serialized classes that have to be
instanciated locally on the client. This is no good for
me since I will be caching ~200megs of data into datasets
etc. which takes minutes to load. I need to attach the
client to an already running instance of the server. Can
anyone help?

Thanks,

Jeff.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.