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 6 1708
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
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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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)....
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |