473,385 Members | 1,615 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,385 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 1273

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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...
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
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.