c# web server with persistent data

J

Jeff

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.
 
M

Marios

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top