Questions tagged [long-polling]

In web programming, long-polling is an emulation of pushing data, implemented by repeated polling with delayed response.

Long polling is itself not a true push; long polling is a variation of the traditional polling technique, but it allows emulating a push mechanism under circumstances where a real push is not possible, such as sites with security policies that require rejection of incoming HTTP/S Requests.

1099 questions
-1
votes
1 answer

From polling to long polling

So I have a script that uses basic polling to show the total amount of records in the database in real time so nothing complicated so can any one give me an example of my code in a long polling structure. The reason why I ask this question because…
user9375528
-1
votes
1 answer

Reliable and fast way to send database updates to one or more web browsers

What is a reliable and fast way to send database updates to one or more web browsers? I have a Postgres database with a few tables being updated over time. The updates range from 0 to 1000 updates per second. When a table is updated I want one to…
ptay
  • 736
  • 6
  • 11
-1
votes
1 answer

long polling api program doesn't make multi threads to make difference between users

i have a telegram bot API program using long polling to run this bot i put this function (that enable my telegram bot) in Global.asax and call it in Application_Start() when i start project telegram bot works properly until it has 1 user, when 2nd…
Iman Fakhari
  • 77
  • 2
  • 9
-1
votes
1 answer

What would suit my use case better streaming, long polling, SSE or websocket?

Firstly to give you an idea of the scale, let me tell you that my web server needs to handle requests from 10k users in parallel, each user sends up a post request. Now coming to each user's request, the processing of each request is a CPU intensive…
-1
votes
2 answers

How can I push data to a browser where the data is based on a SQL statement?

I know there are threads out there on this topic but do seem to answer quite what I am looking for. I have never done any push technology before so some guidance here is appreciated. I understand how when something has changed that that triggers…
Dan
  • 85
  • 1
  • 3
-1
votes
2 answers

Javascript long polling event handler

I have long-polling specific problem. I would like to be able to attach event listener to document, that checks for successful long-polling request and gives me json results as return of callback function. Is it possible with jquery or pure js? The…
klis87
  • 478
  • 1
  • 4
  • 18
-1
votes
1 answer

Node.js vs PHP long-polling performance

I've read and heard that nods.js should be better and lighter at the server when doing long-polling then on a PHP-server. I'm doing a study on this and would like to measure the serverload at two simple long-polling applications to see the…
Inzajt
  • 135
  • 2
  • 13
-1
votes
1 answer

Notifications of new messages. Long polling

Help me please to realise notifications of new messages for users. Now i have this client code: function getmess(){ $.ajax({ url:"notif.php", data:{"id":id}, type:"GET", success:function(result){ $("#count").html(result); …
user3140144
  • 15
  • 2
  • 9
-1
votes
1 answer

Looking a method to wait/stay other threads while a thread in a void?

I'm looking a method to wait all threads while a thread in a void... I have normally 10 threads running. And I have a void, which is important... All threads entering that void together. I would like to wait other threads out of void or start of…
Erçin Dedeoğlu
  • 4,950
  • 4
  • 49
  • 69
-1
votes
1 answer

How to retain variable in arc in every class

I have a lot of classes which are sending requests and finally it all comes to SplitViewController. In the SplitUIviewclass I have to long poll and write the data in a table view. The long polling is done in the background thread, so I have declared…
BackStabber
  • 227
  • 1
  • 13
-1
votes
1 answer

Persistent connection between a WAN and a LAN server

We need to have a persistent connection between servers on WAN and LAN. Basically multiple LAN servers have to register with a server on Internet and always keep an open connection, because we can not ask clients who own serves on LAN to set up port…
mvbl fst
  • 5,213
  • 8
  • 42
  • 59
-1
votes
1 answer

Is this a true long polling?

After a lot of trials, I am successfully able to maintain continuous server connection with a database. Now code keep checking and show the messages, if there are new in database. Please review and tell: if there is true long polling technique used…
Aana Saeed
  • 299
  • 1
  • 4
  • 14
-1
votes
1 answer

Looking to introduce browser push/bidirectional communications to my JSF application

I am looking into methods to introduce push technology to my JSF web application. I am currently serving this need using JavaScript polling and this is too costly for a serious web application. I've read about some possible options but I don't want…
Ben
  • 10,020
  • 21
  • 94
  • 157
-2
votes
1 answer

implement long poll in vertx

I want implement a long poll in vert.x.But I do not know how I can implement in vertx. please guide me
ahmad
  • 1
-2
votes
1 answer

The filemtime () isn't working for my script, but is working fine for the script where I copied the example code

I have a .txt file located under some folder of my data files. Now I have created a long polling system (actually copied the code ) which is run by ajax. Now the problem is that my php script is unable to fetch file modification time of the text…
amankrokx
  • 52
  • 5
1 2 3
73
74