473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to have a win2k service and a web service use a single static cache (shared)

Hi,
I'm in the middle of writing a multi-user system with very
critical timing issues. I've already implemented a cache and an API to
access it (with appropriate locking for multithreaded access). This
shared cache is critical / the primary function of the system.

At the core of this system there is a cache of objects that can be
modified by anyone, and a windows service (thread) that will run
operations with the cached objects on regular intervals.

I need a way to allow a web services host (local machine asp.net
WS) to access this single/core cache thru the local API and am
thinking that if I simply implement a web services layer it will run
in its own .NET runtime and in that runtime have a seperate
cache-singleton. Is this correct? As I understand it (on shaky info)
different .NET apps will run in their own runtimes.

Please reply on the forum and let me know if my assumptions in the
last paragraph are true. If they're false, I'm home free (all .NET
apps on a machine share a common runtime). If they're true, I'll need
a way - possibly .NET remoting, to identify and access the .NET
runtime containing my singleton cache running in the service thread.

Thanks in advance for your help -
Noah
Jul 21 '05 #1
6 1711
Hi Noah,

A long message and impossible to anser in a newsgroup completly in my
opinion however some statements

With Visual .studio Net you can create your own applications (Dll) wich is
are webapplications. Those share all resources between the users from a
specific webapplication (I try to tell it in a few words), while you can
split the users actions in sessions.

You can see Net as a runtime, however than Windows Server is also a runtime.
Net is a more complex instrument than a runtimer, which only gives standard
instructions to the OP.

Net manages also things as memory to keep up the system when you are not
using things as API's

I get the idea, you never did look deep at Visual.Studio Net, have a look at
the benefits from it. I get the idea that you can improve your application
very much with it.

Just my thought,

Cor

Jul 21 '05 #2
Hi Noah,

A long message and impossible to anser in a newsgroup completly in my
opinion however some statements

With Visual .studio Net you can create your own applications (Dll) wich is
are webapplications. Those share all resources between the users from a
specific webapplication (I try to tell it in a few words), while you can
split the users actions in sessions.

You can see Net as a runtime, however than Windows Server is also a runtime.
Net is a more complex instrument than a runtimer, which only gives standard
instructions to the OP.

Net manages also things as memory to keep up the system when you are not
using things as API's

I get the idea, you never did look deep at Visual.Studio Net, have a look at
the benefits from it. I get the idea that you can improve your application
very much with it.

Just my thought,

Cor

Jul 21 '05 #3
Maybe I can clarify,
I'm not writing a typical multi-user program based on web
services. I'm trying to build a system that, at its' core, has a
windows service running and doing certain tasks periodically. The
tasks are cached in memory at this service, as performance and
concurrency issues are critical.

Now, a requirement for this app, is that users/systems across the
enterprise can in real-time, without any delay,
monitor/edit/add/delete tasks from the centralized cache. The current
proposed solution is to have a web-service running on the same server
as the service with the cache. I'm not worried about web user sessions
- the web services (API methods) are stateless.

The main concern: How can I have a web service running with IIS
to access the single static cache in my windows service? As far as I
know, it does matter if these are in different runtimes, as they would
each have their own instances of the static cache.

Thanks,
Noah
Jul 21 '05 #4
Maybe I can clarify,
I'm not writing a typical multi-user program based on web
services. I'm trying to build a system that, at its' core, has a
windows service running and doing certain tasks periodically. The
tasks are cached in memory at this service, as performance and
concurrency issues are critical.

Now, a requirement for this app, is that users/systems across the
enterprise can in real-time, without any delay,
monitor/edit/add/delete tasks from the centralized cache. The current
proposed solution is to have a web-service running on the same server
as the service with the cache. I'm not worried about web user sessions
- the web services (API methods) are stateless.

The main concern: How can I have a web service running with IIS
to access the single static cache in my windows service? As far as I
know, it does matter if these are in different runtimes, as they would
each have their own instances of the static cache.

Thanks,
Noah
Jul 21 '05 #5
Hi Noah,

Seperate what I said before I think you have to look for on
mdsn.microsoft.com with the keyword "remoting", than you will find a lot of
articles, helps and whatever that depends your question.

I hope this helps?

Cor
Jul 21 '05 #6
Hi Noah,

Seperate what I said before I think you have to look for on
mdsn.microsoft.com with the keyword "remoting", than you will find a lot of
articles, helps and whatever that depends your question.

I hope this helps?

Cor
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marty McDonald | last post by:
I create and start several threads, each thread executes the same method - within the method, a web service is invoked. I find that the more threads I use, the longer it takes for all of the...
5
by: Tommy | last post by:
Just recently, I happened came across one .net multithreading book saying that multithread programs might get differential in stability when running on single CPU machine compared to a multi-CPU...
26
by: Ed L. | last post by:
Here's some of my current notions on pgsql performance tuning strictly as it relates to pgsql tuning parameters in the context of a dedicated linux or hpux server. I'm particularly focusing on...
6
by: noah | last post by:
Hi, I'm in the middle of writing a multi-user system with very critical timing issues. I've already implemented a cache and an API to access it (with appropriate locking for multithreaded access)....
5
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is...
14
by: Mark S. | last post by:
Hello, I've written a high performance web app with C# and it completely relies on static hash tables (using sync) and classes. Under real world stress this app is handling 5 get requests per...
6
by: JB | last post by:
Hi All, I'm building a DLL that can be used by several applications. I'd like to have one single instance of a Class stored in my DLL that would be ("shared") by all the applications using that...
20
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
4
by: Oriane | last post by:
Hi there, I need to use an ActiveX inside a Web service. My problem is that I need an handle on this Com component, so I add a reference to my .Net project, and I create an instance of class of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.