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
-1
votes
1 answer

How to add polling interval for a GET request in python

I have a case where I have to keep checking the response of a GET call until I see the status as success in the api response. And it takes around 20 to 50 mins to get the status from active to success. Only when I see this status I can perform my…
amitesh shukla
  • 49
  • 1
  • 12
-1
votes
2 answers

How do i stop polling when user opens a popup?

update(){ this.timeInterval = interval(2000).pipe(startWith(0), switchMap(() => this.deviceService.getDeviceList()) ).subscribe((success: any) => { this.rowData = success; console.log("hello") }, retry(2) ); } I…
sd_30
  • 576
  • 1
  • 6
  • 21
-1
votes
1 answer

React-Native: Parsing Simple JSON GET/POST and Refresh every X Seconds

Get data from JSON Response and populate a field and refresh every X Seconds. It doesn't have to be a background task, just while the screen is active. The responses would be: res.name and res.host. It would also load the current image:…
Marc Pope
  • 335
  • 1
  • 14
-1
votes
2 answers

Handling duplicate data when parsing huge XML feeds

I'm writing a component which parses an xml feed with stock quotes and saves the result in a database. The problem is fairly straightforward, except that feed can not be read incrementallly. That is, there is no way to specify that you only want the…
Björn Lindqvist
  • 19,221
  • 20
  • 87
  • 122
-1
votes
1 answer

How to create a polling system in HTML for a movie review website?

How do I creating a voting system that uses checkboxes for 1 star, 2 stars, 3 stars, 4 stars and 5 stars. According to what the user picks it will generate an average user rating from the given votes and display the number of stars required. I am…
user10848359
-1
votes
1 answer

Real time message push to embedded devices

I'm designing firmware for the first time, and I've come across a pattern that I'm not sure how to solve. I need to be able to push arbitrary messages to embedded devices. The contents can be anything from octet stream to json. The embedded devices…
Riley Laine
  • 181
  • 2
  • 11
-1
votes
1 answer

Polling Javascript

I'm trying to poll a NodeJs Server using the fetch function but the setInterval method is actually not working as expected (it runs only once and then stops). window.onload = () => { let label = document.getElementById('button_badge'); …
Andrea
  • 134
  • 2
  • 12
-1
votes
1 answer

A way to poll users desktop for Unhandled Exception popup

A bit of background: I have an application that is used by multiple people and I rely on them to report errors to me so that I may improve the application. The problem is some of the errors are unhandled and they completely break the application (an…
Benjamin
  • 1
  • 1
-1
votes
1 answer

asp.net Polling from database with ajax

I have looked at all the other questions regarding this and I cant seem to find an answer that fits to my problem. I have a database filled with measurements and respective datetime for the measurement. I currently use ajax in a asp.net web…
-1
votes
1 answer

How do Hangfire's short polling intervals harm SQL Server?

In Hangfire's documentation, there's a mention of polling interval (when using SQL Server as the storage): You can adjust the polling interval, but, as always, lower intervals can harm your SQL Server, and higher interval produce too much latency,…
Tom Pažourek
  • 9,582
  • 8
  • 66
  • 107
-1
votes
1 answer

polling multiple API endpoints in one stream with rxjava

i'm currently trying to poll multiple endpoints (which are different) the problem is i want to keep polling only the endpoints which didn't return the status i need in an aggregated manner so the flow is basically : build the requests -> merge them…
VodkaPlease
  • 31
  • 1
  • 5
-1
votes
2 answers

how to show updated data to the users as fast as possible (not real-time)?

In database some entity is getting updated by some backend process. We want to show this updated value to the user not real-time but as fast as possible on website. Problems we are facing with these approaches. Polling :- As we know that there are…
yajiv
  • 2,901
  • 2
  • 15
  • 25
-1
votes
1 answer

How to efficiently decode gobs and wait for more to arrive via tcp connection

I'd like to have a TCP connection for a gaming application. It's important to be time efficient. I want to receive many objects efficiently. It's also important to be CPU efficient because of the load. So far, I can make sure handleConnection is…
Rick Giuly
  • 983
  • 1
  • 14
  • 19
-1
votes
1 answer

Need to poll a service based on result of the GET service in angular

Need to poll a service based on result of the GET service in angular I have a reporting service which has the response as follows {url}/report/72?sortby=label1 response While the report is being computed { "id": "72", "status":…
-1
votes
1 answer

Attaching event emitter to socket.connected

I am currently writing an Electron app, for which in the main process I want to talk to a server over websockets. Part of my main process' code base depends on the user's socket connection status. I require the socket.io-client library const socket…
Willem van Gerven
  • 1,407
  • 1
  • 17
  • 24