Questions tagged [polling]

Polling is actively sampling the status of an external device by a client program as a synchronous activity.

Polling is actively sampling the status of an external device by a client program as a synchronous activity.

Reference:

1451 questions
9
votes
3 answers

Implementing a live voting system

I'm looking at implementing a live voting system on my website. The website provides a live stream, and I'd like to be able to prompt viewers to select an answer during a vote initiated by the caster. I can understand how to store the data in a…
Will Eddins
  • 13,628
  • 5
  • 51
  • 85
9
votes
3 answers

Proper way to do polling in swift?

I have lot of experience with other programming languages, but not so much in swift 3. I want to do polling loop. This is what i have written: DispatchQueue.global(qos: .userInitiated).async { [unowned self] in while…
MegaManX
  • 8,766
  • 12
  • 51
  • 83
9
votes
3 answers

What is the best Design/Way to keep user connected?

Am working on a POC for self learning in which I want to keep my user connected in LIVE pattern. For example, A game in which 4 user can play at a time , here I need to keep this user connected to my game . M not good at Socket type of…
Singleton
  • 3,701
  • 3
  • 24
  • 37
9
votes
2 answers

SqlDependency performance

I have a web application that use a SQL Server database that is shared with others web applications (over which I have no control). I must know when any of the web apps makes changes to some tables in the database. My first idea was to use…
Johna
  • 2,623
  • 3
  • 21
  • 36
9
votes
1 answer

Long polling in Laravel (sleep() function make application freeze)

I'm trying to program long polling functionality in Laravel, but when I use the sleep() function, the whole application freezes/blocks until the sleep() function is done. Does anyone know how to solve this problem? My javascript looks like…
9
votes
6 answers

Do browsers limit AJAX polling rate? What is the limit?

I just read that some browsers would prevent HTTP polling (I guess by limiting the rate of requests)... From https://github.com/sstrigler/JSJaC: Note: As security restrictions of most modern browsers prevent HTTP Polling from being usable anymore…
SDwarfs
  • 3,189
  • 5
  • 31
  • 53
9
votes
3 answers

Event or polled based embedded MCU system architecture?

I have prior experience in writing both event and poll based embedded systems (for tiny MCU's with no preemptive OS). In an event based system, tasks usually receives events (messages) on a queue and handles them in turn. In a polled based system,…
mhoff
  • 403
  • 4
  • 11
8
votes
3 answers

How should I poll a large number of files for changes?

I'd like to poll the file system for any changed, added or removed files or sub-directories. All changes should be detected quickly but without putting pressure on the machine. The OS is Windows >= Vista, the observed part is a local…
mafu
  • 31,798
  • 42
  • 154
  • 247
8
votes
3 answers

Alternative to Polling. HTML Updates

I am working on a collaborative website that I want to give users notifications while they are viewing or editing data. Something similar to how in StackOverflow if you are replying to a question and the notification at the top pops up saying that…
joe_coolish
  • 7,201
  • 13
  • 64
  • 111
8
votes
3 answers

Indicate to an ajax process that the delayed job has completed

I have a Rails 3 app that uses delayed_job to fetch some data (with a class method) when the user hits the page. How can I indicate to the ajax process that the class method has run (so that I can stop polling)? EDIT: To clarify, I want to know when…
lightyrs
  • 2,809
  • 2
  • 29
  • 32
8
votes
2 answers

Polling, Comet, WebSockets, etc

I'm needing to build in some pretty agressive "auto refresh" capabilities into a web application. It's kind of a photo gallery and the images are stored on AmazonS3 but the data about the images are stored in our own database. I've played around…
Gregg
  • 34,973
  • 19
  • 109
  • 214
8
votes
1 answer

USB polling mechanism

Why does USB use a polling mechanism instead of an interrupt to detect the device? I've read here on Stack Overflow that if the event is Synchronous (i.e., you know when to expect it within a small window) Not Urgent (i.e., a slow polling interval…
Zaks
  • 668
  • 1
  • 8
  • 30
8
votes
3 answers

Progress notification in WCF for long running processes - How?

I have to design and implement a way to deal with long running processes in a client/server application. A typical long running process would/could take 2-3 minutes. I also need to report progress to the UI in the meantime and keep the UI…
Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
8
votes
2 answers

Longpolling vs Websockets

I start developing a software, app coded using html + js I need to send this app notification from the server (java code) the app using nginx for routiong and is hosted in AWS. I investigated this subject of real time notification and I get confused…
Ortal Blumenfeld Lagziel
  • 2,415
  • 3
  • 23
  • 33
8
votes
3 answers

Comet VS Ajax polling

I need to create a chat like facebook chat. With Comet I need more memory to keep the connection. With Ajax polling there is a latency problem if I send request every 3-4 seconds. So... If the latency ( 3-4 seconds ) doesn't matter, Is Ajax Polling…
xRobot
  • 25,579
  • 69
  • 184
  • 304