473,326 Members | 1,972 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,326 software developers and data experts.

Web services synchronization problem.

I need to build a "fault recovery" web service on a Win 2K server box. The
fault recovery is provided for a server process which runs on a Linux box.
Whenever this server process goes down, the fault-recovery web service will
have anywhere between 500 to 1000 hits within 1 to 3 seconds for fault
recovery services, from clients who were connected to the server which went
down.
Now, what I do in the recovery process is that I talk to a daemon process on
the Linux box and try to restart the server process there. The communication
between the Linux box and the web service is done through TCP sockets.
The problem is that I don't wan't all the 500 ~ 1000 requests coming in, to
talk to the Linux box and try to restart the server process. I want only one
of those requests to do this, and all others to wait until the server has
been restarted.
I can't use a simple lock on a variable for this, since all 500 ~ 1000
requests will be on different app-domains, and so that kind of a lock would
not work.
Any suggestions are appreciated.
Ashwin Kambli
Nov 16 '05 #1
0 1270

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

Similar topics

8
by: Dave | last post by:
I'm using the BeginInvoke method of a delegate to invoke a thread asynchronously and then use the EndInvoke to retrieve the value. This works wonderfully until a Serviced Component is added to...
1
by: Avanish Pandey | last post by:
Hello All We have 3 differen services (in 3 different server) Service A,B,C . We want to implement distributed transaction when call methods of B and C from A. Is it possible? if yes then how? ...
0
by: Ashwin Kambli | last post by:
I need to build a "fault recovery" web service on a Win 2K server box. The fault recovery is provided for a server process which runs on a Linux box. Whenever this server process goes down, the...
1
by: RM82 | last post by:
Hi All, I am not sure if this approach is feasible. But i have a timesheets application that works for several small organisations. One of the companies has a small office in South Africa and...
3
by: Michael Nemtsev | last post by:
Can't ace in how client and server component contexts correspons with each other. Server-side (entperiseServices) component is always created in context. But I'd like to create serverside...
12
by: emma_middlebrook | last post by:
Hi Say you had N threads doing some jobs (not from a shared queue or anything like that, they each know how to do their own set of jobs in a self-contained way). How can you coordinate them so...
0
by: lbrtchx | last post by:
Say you need to serve the same Web content from a number of IP address, which you need to keep out there with high availability requirements ~ I think Web Services would be a good candidate for...
0
by: sundman.anders | last post by:
Hi all! I have a question about thread synchronization and c++ streams (iostreams, stringstreams, etc). When optimizing a program for a multicore processor I found that stringstream was causing...
7
by: tshad | last post by:
What exactly is FileWatcher doing? When you drop 100 files in a folder it is watching, it normally will fire of the event 100 times. In my case, I do all my processing on the first event so I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
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 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.