Sharing data between applications

  • Thread starter Thread starter Søren M. Olesen
  • Start date Start date
S

Søren M. Olesen

Hi

Using the System.Web.Caching.Cache object, I'm able to share data between
two (or more) different web clients (http-sessions). But what if some of my
Clients are Windows/Comsole/... applications ??...can I somehow access the
same cache or am I bound to access my data using http??

Tia

Søren
 
This isn't going to work, as a windows or console application, is each its
own process. You are not going to be able to access data from the process
space of another executable.
 
Ok, that was kind of what I figured....but what's the best way of handling
these kind of problems.

My data is stored in an SQL db, so of course I can just reread the data each
time, to see if someone else has changed them, but then my cache is not
worth much.

I guess I need to be able to alert my cache that someone outside the
application has changed some of the data, but how do one do that ??

TIA

Søren
 
My advice you to write a service(may be a webservice) for caching. Service
oriented approach will be the unique solution for heterogen
applications/environment.

For any change on data, you need to call another service route to refresh
data.

I hope this helps you...
Yunus Emre ALPÖZEN
 
Back
Top