0

I need a solution where I have a single windows service providing access to cached data to various consumers: To an MVC web application, a .Net Assembly (COM interop) used within an classic ASP page, other windows services, a windows forms application. So the data must be accessible from various processes. The data being cached is read-only. For now, all processes are located on the same machine. The environment is .net framework 3.5 and c#.

My question is, how can multiple appdomains/processes retrieve cached data from a single windows service?

Mats
  • 14,902
  • 33
  • 78
  • 110
  • I'm not sure I fully understand your question. It seems to me that your starting point should be: figuring out what IPC mechanism you'll be using. Start by investing some time looking at WCF for example. – Captain Sensible Apr 23 '10 at 08:44
  • Thanks for your comment. I've edited the question to make it more precise. I'll go have a look at WCF now ;) – Mats Apr 23 '10 at 09:04

1 Answers1

1

I would look into hosting a WCF endpoint on the windows service. That way pretty much anything should be able to communicate with it.

An other thing you may want to have a look at is Windows Server AppFabric Cache. It would easily allow your service to use multiple servers if you find the need to scale out. However, that, I think, is only accessible via managed code (.NET).

CodingInsomnia
  • 1,843
  • 2
  • 15
  • 19