long-polling


Long polling blocking multiple windows?


Long polling has solved 99% of my problems. There is now just one other problem. Imagine a penny auction site, where people bid. On the frontpage, there are several Auctions.
If the user opens three of these auctions, and because javascript is not multithreaded, how would you get the other pages to ever load? Won't they always get bogged down and not load because they are waiting for long polling to end? In practice, I've experienced this and I can't think of a way around it. Any ideas?
There are two ways that javascript gets around some of this.
While javascript is single threaded conceptually, it does its io in separate threads using completion handlers. This means other pieces of javascript can be running while you are waiting for your network request to complete.
Javascript for each page (or even each frame in each page) is isolated from Javascript on the other pages/frames. This means that each copy of javascript can be running in its own thread.
A bigger issue for you is likely to be that browsers often limit the number of concurrent connections to a given site, and it sounds like you want to make many concurrent connections to the same site. In this case you will get a lock up.
If you control both the sever and client, you will need to combined the multiple long-poll request from the client into a single long-poll request to the server.

Related Links

Koa 2 router how to make a long poll request
Confluent long polling properties in kafka-rest
How to combine async and blocking requests in VuGen?
Long polling confusion
WAS Liberty & Atmosphere long-polling 1 min delay
Long Polling interval in atmosphere
MQTT long polling over GPRS/HSDPA
JS and CSS file fails to load when the page is refreshed in grails application which uses Atmosphere Meteor plugin
Security concerns in long polling
Kafka long polling
How to build the request for a long poll url for box.com
how to access enterprise events using Java code
Handle client timeouts when serving long polling with gevent
Long polling blocking multiple windows?
Long polling on a penny auction site?
Cannot implement long polling

Categories

HOME
google-chrome-extension
wso2
openmp
stock
webstorm
google-docs
jira
analysis
cmd
ckeditor
mvvmcross
opengl-es-2.0
convolution
awesome-wm
maude-system
kibana-4
handsontable
mapserver
quickbooks
iolanguage
libtiff
django-admin
openrefine
google-static-maps
evopdf
connection-string
visjs
errorlevel
mustache.php
microsoft-r
hammerspoon
sqlcipher
vlsi
pepper
dynamic-featured-image
maquette
flink-streaming
sql-server-2012-express
directx-10
ioio
framemaker
phpfreechat
cloud-code
bower-install
scaffold
theano.scan
angularjs-factory
sas-visual-analytics
glew
eclipse-gef
jquery-validate
winscp-net
veracode
git-diff
django-scheduler
nxt
fody
asp.net-4.5
dlna
bluemix-app-scan
suffix-tree
freelancer.com-api
google-places
intellij-14
python-3.2
retina
atk4
spidermonkey
sailfish-os
pretty-print
skos
jsapi
fpml
internet-connection
openexr
elliptic-curve
phpthumb
xceed-datagrid
mbr
centos5
tidy
odata4j
ftps
chronoforms
android-hardware
mhtml
first-responder
cascalog
cinema-4d
fluent-interface
xsdobjectgen
asp.net-profiles
ext3
mtj
swing-app-framework
xetex

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App