polling

about dns polling

currently we use dns polling for 4 web servers, the problem we met is that:when user refreshes,he might go to other web servers.This feels very bad when a user has already login.Because we use session to remember login status,but when refreshing to another web servers,the session is lost.So the best solution should be make the use...

tomcat polling issue

Hi I am not sure if anyone else encountered this issue, I have a java app that polls data from an external provider every second, it works fine and polls data as required -this is a console app I have written a jsp service that does the same, it is basically returning the same data that the console app writes to the console, instead...

Silverlight PollingDuplexHttpBinding and cross domain issues

I created a silverlight component and a WCF service, both are communicating using a PollingDuplexHttpBinding to enable push and pull functionality. Works perfectly in our domain, however, a host outside our domain makes completly no calls to the webservice which is publicly exposed. clientaccesspolicy file is available and downloadabl...

What is the best approach to schedule Callables which may time out in a polling situation?

I have several Callables which query for some JMX Beans, so each one may time out. I want to poll for values lets say every second. The most naive approach would be to start each in a separate thread, but I want to minimize the number of threads. Which options do I have to do it in a better way? ...

Changing the polling interval on BizTalk MSMQ receive adapter

Is there some setting that affects the polling interval in a BizTalk MSMQ receive adapter? I've read the section in Professional BizTalk 2006 that "this is set to 1/2 second and is not configurable", but the delay on my test box seems to be about 10 seconds ...

What is callback polling?

Ok, I am looking to implement COMET, and I stumbled on this page comparing the various options: http://cometdaily.com/maturity.html Under the "Transports", they are using this term "Callback-Polling" - what is callback polling? I know what is normal polling, and long polling, but what is callback polling? ...

Is it better to poll or wait?

I have seen a question on why "polling is bad", but I am wonderring, in terms of minimizing the amount of processor time used by one thread, would it be better to do a spin wait (i.e. poll for a required change in a while loop) or wait on a kernel object (e.g. a kernel event object in windows)? For context, assume that the code would be...

Python Comet Server

I am building a web application that has a real-time feed (similar to Facebook's newsfeed) that I want to update via a long-polling mechanism. I understand that with Python, my choices are pretty much to either use Stackless (building from their Comet wsgi example) or Cometd + Twisted. Unfortunately there is very little documentation reg...

submitting to and monitoring an unreliable webservice

I am building an ASP.NET website which will collect data from a user and submit it to a 3rd party webservice. The webservice is somewhat unreliable and for this reason there is a backup service. If a call to the primary service fails (timeout or some other error) then I need to flip a bit in a static class which will trip the system to ...

ThreadPool is to Executor like Polling is to ???

Java's Executor is (as far as I understand it) an abstraction over the ThreadPool concept - something that can accept and carry out (execute) tasks. I'm looking for a similar exception for the Polling concept. I need to continuously poll (dequeue) items out of a specific Queue (which does not implement BlockingQueue), execute them and s...

Using select/poll/kqueue/kevent to watch a directory for new files

In my app I need to watch a directory for new files. The amount of traffic is very large and there are going to be a minimum of hundreds of new files per second appearing. Currently I'm using a busy loop with this kind of idea: while True: time.sleep(0.2) if len(os.listdir('.')) > 0: # do stuff After running profiling I'm seei...

To poll or not to poll (in a web services context)

We can use polling to find out about updates from some source, for example, clients connected to a webserver. WCF provides a nifty feature in the way of Duplex contracts, in which, I can maintain a connection to a client, and make invocations on that connection at will. Some peeps in the office were discussing the merits of both solutio...

WPF -- How to bubble up event from Collection class to main Window

I'm using an ObjectDataProvider to call a class of with IObservableCollection: <ObjectDataProvider x:Key="WaitingPatientDS" ObjectType="{x:Type local:clsPatients}"> <ObjectDataProvider.ConstructorParameters> <sys:Boolean>True</sys:Boolean> </ObjectDataProvider.ConstructorParameters> </ObjectDataProvider> c...

polling a HTTP server from J2ME client

I have a J2ME app running on my mobile phone(client), I would like to open an HTTP connection with the server and keep polling for updated information on the server. Every poll performed will use up GPRS bytes and would turn out expensive in the long run, as GPRS billing is based on packets sent and received. Is there a byte efficien...

Is there a way to poll a socket in C# only when something is available for reading?

I'm wondering whether there is a way to poll a socket in c# when only one of the conditions (data is available for reading) is satisfied, I'm aware of the socket.Poll method but this can return true if any number of the 3 conditions specified returns true as specified here: MSDN: Socket.Poll ...

Is there a notification mechanism for when getifaddrs() results change?

Hi all, On startup, my program calls getifaddrs() to find out what network interfaces are available for link-local IPv6 multicasting. This works as far as it goes, but it doesn't handle the case where the set of available network interfaces changes after getifaddrs() has returned. Is there some way for the OS to notify my program when...

Opinion Polling and PHP

Okay, so I want to make a polling site but it doesn't work like a typical poll. Here's how I would like mine to operate: User registers and is sent confirmation email Once they confirm they can log in From there they get to one giant poll with several topics but apposed to choosing one topic, they would have 20 or so "tokens" where the...

How to notify my JS client without polling?

Context: From my javascript web UI, I launch a long-running (several minutes) operation that is conducted on the .NET2.0 backend. The call returns immediately with operation ID while the long-running operation run parallel. The operations are not CPU intensive, but conduct slow network calls. Once the operation is completed, I want to se...

jQuery AJAX polling for JSON response, handling based on AJAX result or JSON content

I'm a novice-to-intermediate JavaScript/jQuery programmer, so concrete/executable examples would be very much appreciated. My project requires using AJAX to poll a URL that returns JSON containing either content to be added to the DOM, or a message { "status" : "pending" } that indicates that the backend is still working on generating a...

AJAX polling of a URL returning JSON doesn't seem to return fresh responses (using jQuery $.ajax() method)

My project requires polling a certain URL for a JSON response, using AJAX. The first AJAX request that I make alerts the server that I want some JSON content, and it begins building and cacheing a response, sending me back { "status" : "pending" } for each subsequent AJAX request until the JSON is ready. At that point, the response chang...