Solved

How would this be designed in the .NET world?

Posted on 2011-03-05
2
226 Views
Last Modified: 2012-06-27

Assume that on a Windows 2003 or 2008 server anywhere from 5 to 15 services all use the same list.  The list is just a hash table of keys and values that change once a week.  Every service has a read-only interface.  No service can change the content of the hash table.  We already have a dll that loads the hash table and this dll is referenced by every service.  So we have between 5 and 15 copies of the same hash table in memory.  Constantly being loaded and released as the services start and stop.

How can I load a single instance of this hash table into memory and expose it to any service or process that cares to read it?  We will be using .Net c# 4.0.  Could you point me towards a pattern or other reading?

Thanks for your opinion.
0
Comment
Question by:wilfordrocks
2 Comments
 
LVL 10

Accepted Solution

by:
Jacco earned 500 total points
ID: 35045145
This is a nice approach. It stays away from SharedMemMaps :-)

http://www.dolittle.no/blogs/einar/archive/2007/05/18/cross-appdomain-singleton.aspx
0
 

Author Closing Comment

by:wilfordrocks
ID: 35108206
Thank you.  Excellent link.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What namespace do I need to import? 2 29
SqlDependency to get update from sql to my c# app 2 41
Expression Evaluater 3 26
C# LINQ ForEach() question 6 28
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question