Is using a handrolled POCO queue class using pseudo code
T Dequeue()
{
lock(syncRoot)
{
if(queue.Empty) Thread.Wait();
}
}
void Enqueue(T item)
{
queue.Enqueue(item);
Thread.Notify();
}
for WCF request queueing a scalable approach?
...
Here is the spec:
Multiple clients using a WPF winforms application on their local machines
Clients initiate requests to the server to execute a simulation. This initiation should probably be via a web service but other suggestions are welcome
Requests are queued on the server
Server sends out sequential requests to the simulation mo...
It seems helpful to find out what kind of requests currently in the queue when the queue blocked. Are there any ways for me to know the infomation of them? e.g. request url, client ip, cookie, body...
...
My Web Service uses another API to obtain data. I cache the data, clean it and return it do the user when they make a request. At the moment I am getting a lot of requests and because I can only access the data API 2 times per second, I am getting errors back which means some users don't get the data and other do.
What I want to do is a...
Is there a way to queue up the requests by IP and process the requests in the same queue?
I would like to achieve the following:
Say IP1 is sending 20 requests per minute - I want all these requests to be processed in sequence on completion of the request1, then req2 and so on ...
This should not effect other requests from other IPs.
...
Hi folks,
I have a piece of code that invokes an instance of the bash terminal through the use of the following --
proc = Runtime.getRuntime().exec("/bin/bash", null, working-dir);
and then to run unix commands on this invoked instance of bash I'm using a PrintWriter object like this --
PrintWriter out = new PrintWriter(new Buffered...